-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitrules.json
100 lines (99 loc) · 2.31 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
{
"setup-files": [
],
"rules": [
{ "rule": "at-least-a-number-of-commits",
"number":4,
"score-if-correct":0,
"stop-on-fail":true
},
{
"rule": "commit-with-message-updated-file",
"score-if-correct": 2,
"path": "src/main/java/Library.java",
"contents": "someLibraryMethod",
"ignore-case": true,
},
{
"rule": "commit-with-message-updated-file",
"score-if-correct": 2,
"path": "src/test/java/LibraryTest.java",
"contents": "someLibraryMethod",
"ignore-case": true,
},
{
"rule": "commit-with-message-doesnt-update-file",
"score-if-correct": 2,
"path": "build.gradle",
"contents": "someLibraryMethod",
"ignore-case": true
},
{
"rule": "commit-with-message-updated-file",
"score-if-correct": 2,
"path": "build.gradle",
"contents": "plugin",
"ignore-case": true,
},
{
"rule": "file-untracked-in-head",
"score-if-correct": 2,
"path": "gradlew.bat",
"ignore-case": true
},
{
"rule": "ignored",
"score-if-correct": 1,
"path": "another.bat",
},
{
"rule": "commit-with-message-updated-file",
"score-if-correct": 1,
"path": ".gitignore",
"contents": "windows",
"ignore-case": true,
},
{
"rule": "branch-exists",
"branch": "movewrapper",
"score-if-correct": 1
},
{
"rule": "file-tracked-in-branch",
"path": "src/gradlew",
"branch": "movewrapper",
"score-if-correct": 1
},
{
"rule": "commit-with-message-was-merged-into-branch",
"contents": "wrapper",
"branch": "master",
"score-if-correct": 2,
},
{
"rule": "commit-with-message-has-tag",
"tag": "firstcommit",
"contents": "Add gradle project",
"score-if-correct": 1,
},
{
"rule":"tag-exists",
"tag":"firstcommit",
"contents":"Create project",
"score-if-correct": 1
},
{
"rule": "commit-with-message-updated-file",
"path": "phew.txt",
"contents": "final",
"ignore-case": true,
"score-if-correct": 1,
},
{
"rule": "file-untracked-in-head",
"score-if-correct": 1,
"path": ".gitruler",
"ignore-case": true
}
]
}