You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2016/01/15 19:48:56 UTC

[2/8] allura git commit: [#8039] remove jslint; run eslint

http://git-wip-us.apache.org/repos/asf/allura/blob/92ee579f/AlluraTest/jslint/rhino.js
----------------------------------------------------------------------
diff --git a/AlluraTest/jslint/rhino.js b/AlluraTest/jslint/rhino.js
deleted file mode 100644
index 04be512..0000000
--- a/AlluraTest/jslint/rhino.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// rhino.js
-// 2009-09-11
-/*
-Copyright (c) 2002 Douglas Crockford  (www.JSLint.com) Rhino Edition
-*/
-
-// This is the Rhino companion to fulljslint.js.
-
-/*global JSLINT */
-/*jslint rhino: true, strict: false */
-
-(function (a) {
-    var e, i, input;
-    if (!a[0]) {
-        print("Usage: jslint.js file.js");
-        quit(1);
-    }
-    input = readFile(a[0]);
-    if (!input) {
-        print("jslint: Couldn't open file '" + a[0] + "'.");
-        quit(1);
-    }
-    if (!JSLINT(input, {bitwise: true, eqeqeq: true, immed: true,
-            newcap: true, nomen: true, onevar: true, plusplus: true,
-            regexp: true, rhino: true, undef: true, white: true})) {
-        for (i = 0; i < JSLINT.errors.length; i += 1) {
-            e = JSLINT.errors[i];
-            if (e) {
-                print('Lint at line ' + e.line + ' character ' +
-                        e.character + ': ' + e.reason);
-                print((e.evidence || '').
-                        replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1"));
-                print('');
-            }
-        }
-        quit(2);
-    } else {
-        print("jslint: No problems found in " + a[0]);
-        quit();
-    }
-}(arguments));
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/allura/blob/92ee579f/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index 0b92c2c..701532c 100644
--- a/LICENSE
+++ b/LICENSE
@@ -250,9 +250,6 @@ For details, see Allura/allura/public/nf/css/blueprint/
 Sylvester, which is available under the MIT license.
 For details, see Allura/allura/public/nf/js/sylvester.js
 
-JSLint, which is available under the MIT license.
-For details, see AlluraTest/jslint/
-
 Modernizr, which is available under the MIT license.
 For details, see Allura/allura/public/nf/js/modernizr.js
 

http://git-wip-us.apache.org/repos/asf/allura/blob/92ee579f/rat-excludes.txt
----------------------------------------------------------------------
diff --git a/rat-excludes.txt b/rat-excludes.txt
index c653556..daa6f2f 100644
--- a/rat-excludes.txt
+++ b/rat-excludes.txt
@@ -53,7 +53,6 @@ Allura/docs/make.bat
 Allura/docs/Makefile
 Allura/docs/_build/
 Allura/run/dummy.txt
-AlluraTest/jslint/
 CHANGES
 ForgeGit/forgegit/data/post-receive_tmpl
 ForgeImporters/docs/make.bat