-
Notifications
You must be signed in to change notification settings - Fork 949
/
repolint.json
145 lines (145 loc) · 2.91 KB
/
repolint.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
{
"axioms": {
"linguist": "language",
"licensee": "license",
"packagers": "packager"
},
"rules": {
"all": {
"apache-license-file:file-contents": [
"error",
{
"files": ["LICENSE*"],
"content": "Apache License.*Version 2.0",
"fail-on-non-existent": true
}
],
"code-of-conduct-file:file-contents": [
"error",
{
"files": ["CODE_OF_CONDUCT*"],
"content": "https://wiki.hyperledger.org/community/hyperledger-project-code-of-conduct",
"fail-on-non-existent": true
}
],
"security-file-matches:file-contents": [
"error",
{
"files": ["SECURITY.md"],
"content": "https://wiki.hyperledger.org/display/SEC/Defect.Response",
"fail-on-non-existent": true
}
],
"readme-file-exists:file-existence": [
"error",
{
"files": ["README.md", "README"]
}
],
"readme-references-license:file-contents": [
"error",
{
"files": ["README.md", "README"],
"content": "license",
"flags": "i"
}
],
"maintainers-file-exists:file-existence": [
"error",
{
"files": ["MAINTAINERS.md", "MAINTAINERS.rst"]
}
],
"contributing-file-exists:file-existence": [
"error",
{
"files": ["CONTRIBUTING.md"]
}
],
"changelog-file-exists:file-existence": [
"error",
{
"files": ["CHANGELOG.md"]
}
],
"integrates-with-ci:file-existence": [
"error",
{
"files": [
"circle.yml",
".circleci/config.yml",
"ci/azure-pipelines.yml",
".ci/azure-pipelines.yml",
"Jenkinsfile",
"Jenkinsfile.ci",
"Jenkinsfile.cd",
".github/workflows/*.yml"
]
}
],
"notice-file-exists:file-existence": [
"warning",
{
"files": ["NOTICE*"]
}
],
"source-license-headers-exist:file-starts-with": [
"warning",
{
"files": ["**/*.js", "!node_modules/**"],
"lineCount": 5,
"patterns": ["Copyright", "License"],
"flags": "i"
}
],
"test-directory-exists:directory-existence": [
"warning",
{
"directories": ["**/test*", "**/specs", "**/**_test.go"],
"nocase": true
}
],
"binaries-not-present:file-type-exclusion": [
"error",
{
"type": ["**/*.exe", "**/*.dll", "!node_modules/**"]
}
]
},
"language=javascript": {
"package-metadata-exists:file-existence": [
"warning",
{
"files": ["package.json"]
}
]
},
"language=ruby": {
"package-metadata-exists:file-existence": [
"warning",
{
"files": ["Gemfile"]
}
]
},
"language=java": {
"package-metadata-exists:file-existence": [
"warning",
{
"files": ["pom.xml", "build.xml", "build.gradle"]
}
]
},
"license=*": {
"license-detectable-by-licensee": ["warning"]
},
"language=python": {
"package-metadata-exists:file-existence": [
"warning",
{
"files": ["setup.py", "requirements.txt"]
}
]
}
}
}