Skip to content

Commit

Permalink
Add repolinter support and fix link in SECURITY.md
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud J Le Hors <[email protected]>
  • Loading branch information
lehors committed Feb 1, 2021
1 parent 033fc47 commit 195c2b9
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ There are two ways to report a security bug. The easiest is to email a descripti

The other way is to file a confidential security bug in our [JIRA bug tracking system](https://jira.hyperledger.org). Be sure to set the “Security Level” to “Security issue”.

The process by which the Hyperledger Security Team handles security bugs is documented further in our [Defect Response page](https://wiki.hyperledger.org/display/HYP/Defect+Response) on our [wiki](https://wiki.hyperledger.org).
The process by which the Hyperledger Security Team handles security bugs is documented further in our [Defect Response page](https://wiki.hyperledger.org/display/SEC/Defect+Response) on our [wiki](https://wiki.hyperledger.org).

54 changes: 54 additions & 0 deletions repolint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"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"]}],
"test-directory-exists:directory-existence": ["error", {"directories": ["**/test*", "**/specs", "**/**_test.go"], "nocase": true}],
"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"
]
}
],

"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"}],

"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"]}]
}
}
}

0 comments on commit 195c2b9

Please sign in to comment.