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/11/06 21:47:45 UTC
[incubator-annotator] 01/01: Add Apache Rat configuration and
current report
This is an automated email from the ASF dual-hosted git repository.
bigbluehat pushed a commit to branch setup-apache-rat
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit a7954eed896fdd5f43ea2f99ef2e808f72858b23
Author: Benjamin Young <by...@wiley.com>
AuthorDate: Wed Nov 6 16:42:46 2019 -0500
Add Apache Rat configuration and current report
Apache Rat (Release Audit Tool) is (or was at least) a preferred code license
checking tool used by the ASF. The `.ratignore` file contains a list of files to
exclude from scans. The code used to run Apache Rat was:
java -jar ~/bin/apache-rat-0.13/apache-rat-0.13.jar -E .ratignore -d . > rat_report.txt
Apache Rat: https://creadur.apache.org/rat/
---
.ratignore | 18 ++++++
rat_report.txt | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 193 insertions(+)
diff --git a/.ratignore b/.ratignore
new file mode 100644
index 0000000..77a615b
--- /dev/null
+++ b/.ratignore
@@ -0,0 +1,18 @@
+.editorconfig
+.eslintignore
+.eslintrc.js
+.gitignore
+.lintstagedrc
+.npmignore
+.nycrc
+.ratconfig
+.travis.yml
+lerna.json
+node_modules
+package.json
+rat_report.txt
+repolinter.json
+yarn.lock
+CODE_OF_CONDUCT.md
+README.md
+SECURITY.md
diff --git a/rat_report.txt b/rat_report.txt
new file mode 100644
index 0000000..1c1554c
--- /dev/null
+++ b/rat_report.txt
@@ -0,0 +1,175 @@
+Ignored 0 lines in your exclusion files as comments or empty lines.
+
+*****************************************************
+Summary
+-------
+Generated at: 2019-11-06T16:19:47-05:00
+
+Notes: 2
+Binaries: 0
+Archives: 0
+Standards: 21
+
+Apache Licensed: 18
+Generated Documents: 0
+
+JavaDocs are generated, thus a license header is optional.
+Generated files do not require license headers.
+
+3 Unknown Licenses
+
+*****************************************************
+
+Files with unapproved licenses:
+
+ ./rat.report
+ ./packages/fragment-identifier/src/fragment.js
+ ./packages/fragment-identifier/src/fragment.pegjs
+
+*****************************************************
+
+*****************************************************
+ Files with Apache License headers will be marked AL
+ Binary files (which do not require any license headers) will be marked B
+ Compressed archives will be marked A
+ Notices, licenses etc. will be marked N
+ AL ./.mocharc.js
+ N ./LICENSE
+ N ./NOTICE
+ AL ./babel.config.js
+ AL ./index.html
+ !????? ./rat.report
+ AL ./webpack.config.js
+ AL ./demo/index.html
+ AL ./demo/index.js
+ AL ./packages/dom/src/cartesian.js
+ AL ./packages/dom/src/css.js
+ AL ./packages/dom/src/index.js
+ AL ./packages/dom/src/range.js
+ AL ./packages/dom/src/scope.js
+ AL ./packages/dom/src/text-quote.js
+ AL ./packages/dom/test/cartesian.js
+ AL ./packages/dom/test/index.js
+ !????? ./packages/fragment-identifier/src/fragment.js
+ !????? ./packages/fragment-identifier/src/fragment.pegjs
+ AL ./packages/fragment-identifier/src/index.js
+ AL ./packages/selector/src/index.js
+ AL ./test/data-model.js
+ AL ./test/index.html
+
+*****************************************************
+
+ Printing headers for text files without a valid license header...
+
+=====================================================
+== File: ./rat.report
+=====================================================
+Ignored 0 lines in your exclusion files as comments or empty lines.
+
+=====================================================
+== File: ./packages/fragment-identifier/src/fragment.js
+=====================================================
+// Generated by PEG.js v0.11.0-master.f69239d, https://pegjs.org/
+
+function peg$subclass(child, parent) {
+ function C() { this.constructor = child; }
+ C.prototype = parent.prototype;
+ child.prototype = new C();
+}
+
+function peg$SyntaxError(message, expected, found, location) {
+ this.message = message;
+ this.expected = expected;
+ this.found = found;
+ this.location = location;
+ this.name = "SyntaxError";
+
+ // istanbul ignore next
+ if (typeof Error.captureStackTrace === "function") {
+ Error.captureStackTrace(this, peg$SyntaxError);
+ }
+}
+
+peg$subclass(peg$SyntaxError, Error);
+
+peg$SyntaxError.buildMessage = function(expected, found) {
+ var DESCRIBE_EXPECTATION_FNS = {
+ literal: function(expectation) {
+ return "\"" + literalEscape(expectation.text) + "\"";
+ },
+
+ class: function(expectation) {
+ var escapedParts = expectation.parts.map(function(part) {
+ return Array.isArray(part)
+ ? classEscape(part[0]) + "-" + classEscape(part[1])
+ : classEscape(part);
+ });
+
+ return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]";
+ },
+
+ any: function() {
+ return "any character";
+ },
+
+ end: function() {
+ return "end of input";
+ },
+
+ other: function(expectation) {
+ return expectation.description;
+ },
+
+=====================================================
+== File: ./packages/fragment-identifier/src/fragment.pegjs
+=====================================================
+{
+ function collect() {
+ var ret = {};
+ var len = arguments.length;
+ for (var i=0; i<len; i++) {
+ for (var p in arguments[i]) {
+ if (arguments[i].hasOwnProperty(p)) {
+ ret[p] = arguments[i][p];
+ }
+ }
+ }
+ return ret;
+ }
+}
+
+
+start =
+ top
+
+top
+ = "state" "(" p:params ")" { return { state: p } }
+ / "selector" "(" p:params ")" { return { selector: p } }
+ / "state=" v:value { return { state: v } }
+ / "selector=" v:value { return { selector: v } }
+
+params
+ = k1: key_value_pair k2:("," key_value_pair)*
+ {
+ var f = k1;
+ for( var i = 0; i < k2.length; i++ ) {
+ f = collect(f, k2[i][1])
+ }
+ return f;
+ }
+
+key_value_pair
+ = "refinedBy=selector(" p:params ")"
+ {
+ return { refinedBy: p }
+ }
+ / "refinedBy=state(" p:params ")"
+ {
+ return { refinedBy: p }
+ }
+ / "startSelector=selector(" p:params ")"
+ {
+ return { startSelector: p };
+ }
+ / "endSelector=selector(" p:params ")"
+ {