Skip to content

Commit 1e5a48b

Browse files
committed
Updating repolinter.json to require Oracle disclaimer
1 parent 04e0a5a commit 1e5a48b

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

repolinter.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
3+
"version": 2,
4+
"axioms": {},
5+
"rules": {
6+
"readme-file-exists" : {
7+
"level": "error",
8+
"rule": {
9+
"type": "file-existence",
10+
"options": {
11+
"globsAny": ["README*"]
12+
}
13+
}
14+
},
15+
"disclaimer-present" : {
16+
"level": "error",
17+
"rule": {
18+
"type": "file-contents",
19+
"options": {
20+
"globsAll": ["README*"],
21+
"noCase": true,
22+
"fail-on-non-existent": true,
23+
"content": "ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND"
24+
}
25+
}
26+
},
27+
"license-file-exists" : {
28+
"level": "error",
29+
"rule": {
30+
"type": "file-existence",
31+
"options": {
32+
"globsAny": ["LICENSE*"]
33+
}
34+
}
35+
},
36+
"copyright-notice-present" : {
37+
"level": "warning",
38+
"rule": {
39+
"type": "file-starts-with",
40+
"options": {
41+
"globsAll": ["**/*"],
42+
"skip-binary-files": true,
43+
"skip-paths-matching": {
44+
"extensions": ["yaml","yml","md","json","xml","tpl","ipynb","pickle","joblib","properties"],
45+
"patterns": ["\\.github"],
46+
"flags": ""
47+
},
48+
"lineCount": 2,
49+
"patterns": [
50+
"Copyright \\([cC]\\) [12][90]\\d\\d(\\-[12][90]\\d\\d)? Oracle and/or its affiliates\\."
51+
],
52+
"succeed-on-non-exist": true
53+
}
54+
}
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)