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:40 UTC

[incubator-annotator] branch adding-repolinter-and-asf-rules created (now f1dd0be)

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

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


      at f1dd0be  Remove email requirement from CoC

This branch includes the following new commits:

     new b4c7fce  Add default repolinter.json config
     new 6b823ec  Customize repolinter config with ASF rules
     new e1309fc  Add HTML files to license checking
     new 0f7b4e6  Switch license headers to use ASF intro
     new 1828e15  Add SECURITY.md pointing to ASF policy page
     new 6f3b2e2  Add CODE_OF_CONDUCT.md pointing to the ASF CoC
     new f1dd0be  Remove email requirement from CoC

The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by bi...@apache.org.
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"]}]


[incubator-annotator] 06/07: Add CODE_OF_CONDUCT.md pointing to the ASF CoC

Posted by bi...@apache.org.
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 6f3b2e2ea9fb3e9d916ed9f02a283226e1285636
Author: Benjamin Young <by...@wiley.com>
AuthorDate: Wed Oct 9 11:42:48 2019 -0400

    Add CODE_OF_CONDUCT.md pointing to the ASF CoC
---
 CODE_OF_CONDUCT.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..352f272
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,3 @@
+Please be aware that this and every Apache Software Foundation project is
+governed by the official Apache Software Foundation
+[Code of Conduct](https://www.apache.org/foundation/policies/conduct.html).


[incubator-annotator] 04/07: Switch license headers to use ASF intro

Posted by bi...@apache.org.
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 0f7b4e603b65b42e40e26585c39606b908c8265c
Author: Benjamin Young <by...@wiley.com>
AuthorDate: Wed Oct 9 11:34:54 2019 -0400

    Switch license headers to use ASF intro
    
    Apparently ASF projects use a different preamble:
    https://www.apache.org/legal/src-headers.html#headers
---
 .mocharc.js                               | 21 +++++++++++++--------
 babel.config.js                           | 21 +++++++++++++--------
 demo/index.html                           | 20 +++++++++++++-------
 demo/index.js                             | 21 +++++++++++++--------
 index.html                                | 20 +++++++++++++-------
 packages/dom/src/cartesian.js             | 21 +++++++++++++--------
 packages/dom/src/css.js                   | 20 ++++++++++++++++++++
 packages/dom/src/index.js                 | 21 +++++++++++++--------
 packages/dom/src/range.js                 | 21 +++++++++++++--------
 packages/dom/src/scope.js                 | 21 +++++++++++++--------
 packages/dom/src/text-quote.js            | 21 +++++++++++++--------
 packages/dom/test/cartesian.js            | 21 +++++++++++++--------
 packages/dom/test/index.js                | 21 +++++++++++++--------
 packages/fragment-identifier/src/index.js | 21 +++++++++++++--------
 packages/selector/src/index.js            | 21 +++++++++++++--------
 test/data-model.js                        | 21 +++++++++++++--------
 test/index.html                           | 20 +++++++++++++-------
 webpack.config.js                         | 21 +++++++++++++--------
 18 files changed, 241 insertions(+), 133 deletions(-)

diff --git a/.mocharc.js b/.mocharc.js
index 484562f..fbacce9 100644
--- a/.mocharc.js
+++ b/.mocharc.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 module.exports = {
diff --git a/babel.config.js b/babel.config.js
index 0bff4ff..6469948 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 module.exports = api => {
diff --git a/demo/index.html b/demo/index.html
index d013b26..facccec 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -1,14 +1,20 @@
 <!--
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
 -->
 <!doctype html>
 <html>
diff --git a/demo/index.js b/demo/index.js
index 06f3e4d..63acf12 100644
--- a/demo/index.js
+++ b/demo/index.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 /* global corpus, module, parsed, selectable */
diff --git a/index.html b/index.html
index 6ccac15..67157d5 100644
--- a/index.html
+++ b/index.html
@@ -1,14 +1,20 @@
 <!--
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
 -->
 <!doctype html>
 <html>
diff --git a/packages/dom/src/cartesian.js b/packages/dom/src/cartesian.js
index 8aa3727..e800c2b 100644
--- a/packages/dom/src/cartesian.js
+++ b/packages/dom/src/cartesian.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 import cartesianArrays from 'cartesian';
diff --git a/packages/dom/src/css.js b/packages/dom/src/css.js
index 6496f92..3a7c6c1 100644
--- a/packages/dom/src/css.js
+++ b/packages/dom/src/css.js
@@ -1,3 +1,23 @@
+/**
+ * @license
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 export function createCssSelector(selector) {
   return async function* matchAll(scope) {
     yield* scope.querySelectorAll(selector.value);
diff --git a/packages/dom/src/index.js b/packages/dom/src/index.js
index 9caac1b..e54a806 100644
--- a/packages/dom/src/index.js
+++ b/packages/dom/src/index.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 export * from './css';
diff --git a/packages/dom/src/range.js b/packages/dom/src/range.js
index 29c0708..51b1483 100644
--- a/packages/dom/src/range.js
+++ b/packages/dom/src/range.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 import { ownerDocument } from './scope.js';
diff --git a/packages/dom/src/scope.js b/packages/dom/src/scope.js
index 49c6637..007618d 100644
--- a/packages/dom/src/scope.js
+++ b/packages/dom/src/scope.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 export function ownerDocument(scope) {
diff --git a/packages/dom/src/text-quote.js b/packages/dom/src/text-quote.js
index 81bd0d8..21a530e 100644
--- a/packages/dom/src/text-quote.js
+++ b/packages/dom/src/text-quote.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 import createNodeIterator from 'dom-node-iterator';
diff --git a/packages/dom/test/cartesian.js b/packages/dom/test/cartesian.js
index 73841b1..a56f9c8 100644
--- a/packages/dom/test/cartesian.js
+++ b/packages/dom/test/cartesian.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 import { product } from '../src/cartesian.js';
diff --git a/packages/dom/test/index.js b/packages/dom/test/index.js
index cb6cdcf..ebd8b07 100644
--- a/packages/dom/test/index.js
+++ b/packages/dom/test/index.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 export {};
diff --git a/packages/fragment-identifier/src/index.js b/packages/fragment-identifier/src/index.js
index c7d85ea..0ba2e4d 100644
--- a/packages/fragment-identifier/src/index.js
+++ b/packages/fragment-identifier/src/index.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 export { SyntaxError, parse } from './fragment.js';
diff --git a/packages/selector/src/index.js b/packages/selector/src/index.js
index 698159a..c9c100d 100644
--- a/packages/selector/src/index.js
+++ b/packages/selector/src/index.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 export function makeRefinable(selectorCreator) {
diff --git a/test/data-model.js b/test/data-model.js
index 8648e5b..8398e40 100644
--- a/test/data-model.js
+++ b/test/data-model.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 /* global process */
diff --git a/test/index.html b/test/index.html
index 2d963be..d40890c 100644
--- a/test/index.html
+++ b/test/index.html
@@ -1,14 +1,20 @@
 <!--
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
 -->
 <!doctype html>
 <html>
diff --git a/webpack.config.js b/webpack.config.js
index 9f6ddbe..b20514a 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,16 +1,21 @@
 /**
  * @license
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 /* eslint-env node */


[incubator-annotator] 03/07: Add HTML files to license checking

Posted by bi...@apache.org.
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 e1309fc9a86a8c93183764f572d1dc7030c803f7
Author: Benjamin Young <by...@wiley.com>
AuthorDate: Wed Oct 9 11:34:01 2019 -0400

    Add HTML files to license checking
---
 repolinter.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repolinter.json b/repolinter.json
index eba3997..116f1e3 100644
--- a/repolinter.json
+++ b/repolinter.json
@@ -38,7 +38,7 @@
           "human-readable-content": "email address"
         }
       ],
-      "source-license-headers-exist:file-starts-with": ["warning", {"files": ["**/*.js", "!node_modules/**"], "lineCount": 5, "patterns": ["Licensed to the Apache Software Foundation"], "flags": "i"}],
+      "source-license-headers-exist:file-starts-with": ["warning", {"files": ["**/*.js", "**/*.html", "!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*"]}]
     },


[incubator-annotator] 01/07: Add default repolinter.json config

Posted by bi...@apache.org.
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 b4c7fcea07a296ff26f781ac102699d30fd75613
Author: Benjamin Young <by...@wiley.com>
AuthorDate: Wed Oct 9 11:18:01 2019 -0400

    Add default repolinter.json config
    
    Allows for using https://github.com/todogroup/repolinter to
    test repository compliance. This is the default configuration
    from the TODO Group. It will be customized in forthcoming
    commmits to match ASF policy.
---
 repolinter.json | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)

diff --git a/repolinter.json b/repolinter.json
new file mode 100644
index 0000000..af46f20
--- /dev/null
+++ b/repolinter.json
@@ -0,0 +1,76 @@
+{
+  "axioms": {
+    "linguist":"language",
+    "licensee":"license",
+    "packagers":"packager"
+  },
+  "rules": {
+    "all": {
+      "license-file-exists:file-existence": ["error", {"files": ["LICENSE*", "COPYING*"], "nocase": true}],
+      "readme-file-exists:file-existence": ["error", {"files": ["README*"], "nocase": true}],
+
+      "contributing-file-exists:file-existence": ["error", {"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}],
+      "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",
+        {
+          "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*",
+            ".github/CODEOFCONDUCT*", ".github/CODE-OF-CONDUCT*", ".github/CODE_OF_CONDUCT*"
+          ],
+          "content": ".+@.+\\..+",
+          "flags": "i",
+          "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*"]}]
+    },
+    "language=javascript": {
+      "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"]}]
+    },
+    "license=*": {
+      "license-detectable-by-licensee": ["error"]
+    },
+    "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"]}]
+    }
+  }
+}


[incubator-annotator] 05/07: Add SECURITY.md pointing to ASF policy page

Posted by bi...@apache.org.
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 1828e158444fe0ce200293c3ec582af9219c08ff
Author: Benjamin Young <by...@wiley.com>
AuthorDate: Wed Oct 9 11:39:08 2019 -0400

    Add SECURITY.md pointing to ASF policy page
---
 SECURITY.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..8a2cdcd
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,3 @@
+Please follow the Apache Software Foundation's Security Team instructions when
+reporting any vulnerabilities:
+https://www.apache.org/security/


[incubator-annotator] 07/07: Remove email requirement from CoC

Posted by bi...@apache.org.
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 f1dd0be0db931bb381dad2af127759b4fa1d6b12
Author: Benjamin Young <by...@wiley.com>
AuthorDate: Wed Oct 9 11:46:29 2019 -0400

    Remove email requirement from CoC
    
    This local CoC doc points to the official ASF CoC
    web page, so it does not itself include any points
    of contact.
---
 repolinter.json | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/repolinter.json b/repolinter.json
index 116f1e3..bc4ed34 100644
--- a/repolinter.json
+++ b/repolinter.json
@@ -26,18 +26,6 @@
           "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*",
-            ".github/CODEOFCONDUCT*", ".github/CODE-OF-CONDUCT*", ".github/CODE_OF_CONDUCT*"
-          ],
-          "content": ".+@.+\\..+",
-          "flags": "i",
-          "human-readable-content": "email address"
-        }
-      ],
       "source-license-headers-exist:file-starts-with": ["warning", {"files": ["**/*.js", "**/*.html", "!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*"]}]