-
Notifications
You must be signed in to change notification settings - Fork 21
/
gitrules.json
159 lines (159 loc) · 4.66 KB
/
gitrules.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"setup-files": [
{
"path": "files/ideas/air-conditioning.bak",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/better-signs.bak",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/bigger-apples.bak",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/blue-uniforms.bak",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/drafts/draft-idea-a.txt",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/drafts/draft-idea-b.txt",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/drafts/draft-idea-c.txt",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/drafts/draft-idea-d.txt",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/drafts/draft-idea-e.txt",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/drafts/draft-idea-f.txt",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/drafts/draft-idea-g.txt",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/drafts/draft-idea-h.txt",
"contents": "Here's where I'll write the details of this idea"
},
{
"path": "files/ideas/chairs.txt",
"contents": "\nI have more ideas about this idea"
},
{
"path": "files/ideas/hire-more-staff.txt",
"contents": "\nI have more ideas about this idea"
},
{
"path": "files/ideas/new-website.txt",
"contents": "\nI have more ideas about this idea"
},
{
"path": "files/ideas/smaller-plums.txt",
"contents": "\nI have more ideas about this idea"
}
],
"rules": [
{
"rule": "text",
"separator": "-",
"width": 100,
"heading": "IGNORING FILES",
"double-space": true
},
{
"rule": "ignored",
"path": "files/ideas/any.bak",
"alternative-title": "Git ignores all backup files in 'files/ideas'",
"score-if-correct": 10
},
{
"rule": "ignored",
"path": "files/ideas/drafts/any.txt",
"alternative-title": "Git ignores all draft ideas",
"score-if-correct": 10
},
{
"rule": "any-commit-message-contains",
"contents": "Ignore draft and backup ideas",
"ignore-case": true,
"score-if-correct": 5
},
{
"rule": "commit-with-message-updated-file",
"path": "files/ideas/chairs.txt",
"contents": "add extra ideas",
"ignore-case": true,
"score-if-correct": 5,
"alternative-title": "Extra ideas files were committed",
},
{
"rule": "commit-with-message-doesnt-update-file",
"contents": "add extra ideas",
"path": ".gitignore",
"ignore-case": true,
"score-if-correct": 10,
"alternative-title": "Only the extra ideas were committed by that commit.",
},
{
"rule": "text",
"separator": "-",
"width": 120,
"heading": "MOVING AND REMOVING FILES",
"double-space": true
},
{
"rule": "commit-with-message-updated-file",
"path": "files/ideas/great/new-website.txt",
"contents": "move great ideas",
"ignore-case": true,
"score-if-correct": 10
},
{
"rule": "commit-with-message-updated-file",
"path": "files/ideas/great/better-signs.txt",
"contents": "move great ideas",
"ignore-case": true,
"score-if-correct": 10
},
{
"rule": "commit-with-message-updated-file",
"path": "files/ideas/great/put-locks-on-the-doors.txt",
"contents": "move great ideas",
"ignore-case": true,
"score-if-correct": 10
},
{
"rule": "file-has-hash-in-head",
"path": "files/ideas/great/put-locks-on-the-doors.txt",
"hash": "b0464e3bab4b1da811ab46c57d9f2f2a6cc3dc50",
"score-if-correct": 10
},
{
"rule": "commit-with-message-updated-file",
"path": "files/ideas/smaller-plums.txt",
"contents": "remove bad ideas",
"ignore-case": true,
"score-if-correct": 10,
"alternative-title": "The Smaller Plums idea was removed in the correct commit",
},
{
"rule": "file-untracked-in-head",
"path": "files/ideas/smaller-plums.txt",
"score-if-correct": 10,
"alternative-title": "The Smaller Plums idea file is no longer tracked",
}
]
}