Skip to content

Commit

Permalink
Add repolinter and core required files
Browse files Browse the repository at this point in the history
  • Loading branch information
nklincoln committed Apr 30, 2020
1 parent d53baf2 commit 7b82e5c
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ architecture.pptx
output.log
lerna-debug.log

# Ignore zookeeper files
zookeeper.out

# We prefer to not use lock files
**/package-lock.json

Expand Down
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

8 changes: 8 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Code of Conduct Guidelines
==========================

Please review the Hyperledger [Code of
Conduct](https://wiki.hyperledger.org/community/hyperledger-project-code-of-conduct)
before participating. It is important that we keep things civil.

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
11 changes: 11 additions & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Maintainers
===========

| Name | GitHub | Chat | email |
|---------------------------|------------------|----------------|-------------------------------------|
| Attila Klenik | aklenik | klenik | |
| FeihuJiang | feihujiang | FlyingTiger | |
| HaojunZhou | haojun | haojun | |
| Nick Lincoln | nklincoln | nkl199 | |

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"dependencies": {},
"devDependencies": {
"lerna": "^3.18.3",
"license-check-and-add": "2.3.6"
"license-check-and-add": "2.3.6",
"repolinter": "0.8.2"
},
"license-check-and-add-config": {
"folder": ".",
Expand Down
3 changes: 0 additions & 3 deletions packages/caliper-cli/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ architecture.pptx
output.log
lerna-debug.log

# Ignore zookeeper files
zookeeper.out

# We prefer to not use lock files
**/package-lock.json

Expand Down
3 changes: 0 additions & 3 deletions packages/caliper-core/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ architecture.pptx
output.log
lerna-debug.log

# Ignore zookeeper files
zookeeper.out

# We prefer to not use lock files
**/package-lock.json

Expand Down
3 changes: 0 additions & 3 deletions packages/caliper-fabric/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ architecture.pptx
output.log
lerna-debug.log

# Ignore zookeeper files
zookeeper.out

# We prefer to not use lock files
**/package-lock.json

Expand Down
3 changes: 0 additions & 3 deletions packages/caliper-iroha/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ architecture.pptx
output.log
lerna-debug.log

# Ignore zookeeper files
zookeeper.out

# We prefer to not use lock files
**/package-lock.json

Expand Down
3 changes: 0 additions & 3 deletions packages/caliper-publish/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ architecture.pptx
output.log
lerna-debug.log

# Ignore zookeeper files
zookeeper.out

# We prefer to not use lock files
**/package-lock.json

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

Please sign in to comment.