allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [03/11] allura git commit: [#8039] remove jslint; run eslint
Date Mon, 18 Jan 2016 20:31:39 GMT
http://git-wip-us.apache.org/repos/asf/allura/blob/9a17766f/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/9a17766f/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/9a17766f/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


Mime
View raw message