You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by bi...@apache.org on 2019/10/09 15:52:42 UTC

[incubator-annotator] 02/07: Customize repolinter config with ASF rules

This is an automated email from the ASF dual-hosted git repository.

bigbluehat pushed a commit to branch adding-repolinter-and-asf-rules
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit 6b823eced65073ded03a1b55e08076f8f6d16970
Author: Benjamin Young <by...@wiley.com>
AuthorDate: Wed Oct 9 11:24:47 2019 -0400

    Customize repolinter config with ASF rules
    
    These changes were based off of this explanation:
    https://www.apache.org/legal/src-headers.html
    
    The reduction of a few `error` statuses to `warning` or `info` was based on
    research done of other ASF projects.
---
 repolinter.json | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/repolinter.json b/repolinter.json
index af46f20..eba3997 100644
--- a/repolinter.json
+++ b/repolinter.json
@@ -6,22 +6,22 @@
   },
   "rules": {
     "all": {
-      "license-file-exists:file-existence": ["error", {"files": ["LICENSE*", "COPYING*"], "nocase": true}],
+      "license-file-exists:file-existence": ["error", {"files": ["LICENSE*"], "nocase": true}],
       "readme-file-exists:file-existence": ["error", {"files": ["README*"], "nocase": true}],
 
-      "contributing-file-exists:file-existence": ["error", {"files": ["CONTRIB*", ".github/CONTRIB*"]}],
+      "contributing-file-exists:file-existence": ["warning", {"files": ["CONTRIB*", ".github/CONTRIB*"]}],
       "code-of-conduct-file-exists:file-existence": ["error", {"files": [
         "CODEOFCONDUCT*", "CODE-OF-CONDUCT*", "CODE_OF_CONDUCT*",
         ".github/CODEOFCONDUCT*", ".github/CODE-OF-CONDUCT*", ".github/CODE_OF_CONDUCT*"
         ]}],
-      "changelog-file-exists:file-existence": ["error", {"files": ["CHANGELOG*"], "nocase": true}],
-      "security-file-exists:file-existence": ["error", {"files": ["SECURITY.md"]}],
-      "support-file-exists:file-existence": ["error", {"files": ["{docs/,.github/,}SUPPORT*"], "nocase": true}],
+      "changelog-file-exists:file-existence": ["info", {"files": ["CHANGELOG*", "CHANGES*"], "nocase": true}],
+      "security-file-exists:file-existence": ["info", {"files": ["SECURITY.md"]}],
+      "support-file-exists:file-existence": ["info", {"files": ["{docs/,.github/,}SUPPORT*"], "nocase": true}],
       "readme-references-license:file-contents": ["error", {"files": ["README*"], "content": "license", "flags": "i"}],
       "binaries-not-present:file-type-exclusion": ["error", {"type": ["**/*.exe", "**/*.dll", "!node_modules/**"]}],
       "test-directory-exists:directory-existence": ["error", {"directories": ["**/test*", "**/specs"], "nocase": true}],
       "integrates-with-ci:file-existence": [
-        "error",
+        "warning",
         {
           "files": [".gitlab-ci.yml", ".travis.yml", "appveyor.yml", ".appveyor.yml", "circle.yml", ".circleci/config.yml", "Jenkinsfile", ".drone.yml"]
         }
@@ -38,9 +38,9 @@
           "human-readable-content": "email address"
         }
       ],
-      "source-license-headers-exist:file-starts-with": ["warning", {"files": ["**/*.js", "!node_modules/**"], "lineCount": 5, "patterns": ["Copyright", "License"], "flags": "i"}],
-      "github-issue-template-exists:file-existence": ["error", {"files": ["ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE*"]}],
-      "github-pull-request-template-exists:file-existence": ["error", {"files": ["PULL_REQUEST_TEMPLATE*", ".github/PULL_REQUEST_TEMPLATE*"]}]
+      "source-license-headers-exist:file-starts-with": ["warning", {"files": ["**/*.js", "!node_modules/**"], "lineCount": 5, "patterns": ["Licensed to the Apache Software Foundation"], "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"]}]