-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrepolinter.json
74 lines (74 loc) · 3.68 KB
/
repolinter.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
{
"axioms": {
"linguist":"language",
"licensee":"license",
"packagers":"packager"
},
"rules": {
"all": {
"license-file-exists:file-existence": ["error", {"files": ["LICENSE*", "COPYING*"]}],
"notice-file-exists:file-existence": ["error", {"files": ["NOTICE*"], "fail-message": "The NOTICE file is described in section 4.4 of the Apache License version 2.0. Its presence is not mandated by the license itself, but by ASF policy."}],
"readme-file-exists:file-existence": ["error", {"files": ["README*"], "nocase": true}],
"contributing-file-exists:file-existence": ["error", {"files": ["CONTRIB*"]}],
"code-of-conduct-file-exists:file-existence": ["error", {"files": ["CODEOFCONDUCT*", "CODE-OF-CONDUCT*", "CODE_OF_CONDUCT*"]}],
"support-file-exists:file-existence": ["info", {"files": ["SUPPORT*"], "nocase": true}],
"readme-references-license:file-contents": ["error", {"files": ["README*"], "content": "license", "flags": "i"}],
"binaries-not-present:file-type-exclusion": ["warning", {"type": ["**/*.exe", "**/*.dll", "!node_modules/**"]}],
"test-directory-exists:directory-existence": ["info", {"directories": ["**/test*", "**/specs"], "nocase": true}],
"integrates-with-ci:file-existence": [
"info",
{
"files": [".gitlab-ci.yml", ".travis.yml", "appveyor.yml", ".appveyor.yml", "circle.yml", ".circleci/config.yml", "Jenkinsfile", ".drone.yml"]
}
],
"code-of-conduct-file-contains-email:file-contents": [
"error",
{
"files": ["CODEOFCONDUCT*", "CODE-OF-CONDUCT*", "CODE_OF_CONDUCT*"],
"content": ".+@.+\\..+",
"flags": "i",
"human-readable-content": "email address"
}
],
"source-license-headers-exist:file-starts-with": ["error", {"files": ["**/*.ts", "**/*.tsx", "!node_modules/**", "!dist/**", "!apps/n/porrtal-io-app/next-env.d.ts"], "lineCount": 5, "patterns": ["Copyright", "License"], "flags": "i"}],
"github-issue-template-exists:file-existence": ["info", {"files": ["ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE*"]}],
"github-pull-request-template-exists:file-existence": ["info", {"files": ["PULL_REQUEST_TEMPLATE*", ".github/PULL_REQUEST_TEMPLATE*"]}]
},
"language=javascript": {
"package-metadata-exists:file-existence": ["error", {"files": ["package.json"]}]
},
"language=typescript": {
"package-metadata-exists:file-existence": ["error", {"files": ["package.json"]}]
},
"language=ruby": {
"package-metadata-exists:file-existence": ["error", {"files": ["Gemfile"]}]
},
"language=java": {
"package-metadata-exists:file-existence": ["error", {"files": ["pom.xml", "build.xml", "build.gradle", "build.gradle.kts"]}]
},
"language=kotlin": {
"package-metadata-exists:file-existence": ["error", {"files": ["pom.xml", "build.xml", "build.gradle", "build.gradle.kts"]}]
},
"license=*": {
"license-detectable-by-licensee": ["info"]
},
"license=Apache-2.0": {
"notice-file-exists:apache-notice": ["error"]
},
"language=python": {
"package-metadata-exists:file-existence": ["error", {"files": ["setup.py", "requirements.txt"]}]
},
"language=objective-c": {
"package-metadata-exists:file-existence": ["error", {"files": ["Cartfile", "Podfile", "*.podspec"]}]
},
"language=swift": {
"package-metadata-exists:file-existence": ["error", {"files": ["Package.swift"]}]
},
"language=erlang": {
"package-metadata-exists:file-existence": ["error", {"files": ["rebar.config"]}]
},
"language=elixir": {
"package-metadata-exists:file-existence": ["error", {"files": ["mix.exs"]}]
}
}
}