cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/2] android commit: CB-8410 Enable jshint for Android platform
Date Tue, 03 Feb 2015 20:22:31 GMT
Repository: cordova-android
Updated Branches:
  refs/heads/master fb8e35bb4 -> aed485964


CB-8410 Enable jshint for Android platform


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/d0ade1d1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/d0ade1d1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/d0ade1d1

Branch: refs/heads/master
Commit: d0ade1d190dd8f7bc2cb3169f8fadc44d433c7cd
Parents: fb8e35b
Author: Murat Sutunc <muratsu@microsoft.com>
Authored: Tue Feb 3 11:30:12 2015 -0800
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Feb 3 15:21:56 2015 -0500

----------------------------------------------------------------------
 .jshintignore  |  2 ++
 .jshintrc      | 10 ++++++++++
 package.json   |  6 ++++--
 spec/.jshintrc | 11 +++++++++++
 4 files changed, 27 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d0ade1d1/.jshintignore
----------------------------------------------------------------------
diff --git a/.jshintignore b/.jshintignore
new file mode 100644
index 0000000..e87aa4b
--- /dev/null
+++ b/.jshintignore
@@ -0,0 +1,2 @@
+bin/node_modules/*
+bin/templates/project/*

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d0ade1d1/.jshintrc
----------------------------------------------------------------------
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..89a121c
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,10 @@
+{
+    "node": true
+  , "bitwise": true
+  , "undef": true
+  , "trailing": true
+  , "quotmark": true
+  , "indent": 4
+  , "unused": "vars"
+  , "latedef": "nofunc"
+}

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d0ade1d1/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index b63f18b..39741d2 100644
--- a/package.json
+++ b/package.json
@@ -13,8 +13,9 @@
         "apache"
     ],
     "scripts": {
-        "test": "jasmine-node --color spec",
-        "test-build": "rm -rf \"test create\"; ./bin/create \"test create\" com.test.app
応用 && \"./test create/cordova/build\" && rm -rf \"test create\""
+        "test": "npm run jshint && jasmine-node --color spec",
+        "test-build": "rm -rf \"test create\"; ./bin/create \"test create\" com.test.app
応用 && \"./test create/cordova/build\" && rm -rf \"test create\"",
+        "jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint
spec"
     },
     "author": "Apache Software Foundation",
     "license": "Apache version 2.0",
@@ -25,6 +26,7 @@
     },
     "devDependencies": {
         "jasmine-node": "~1",
+        "jshint": "^2.6.0",
         "promise-matchers": "~0"
     }
 }

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d0ade1d1/spec/.jshintrc
----------------------------------------------------------------------
diff --git a/spec/.jshintrc b/spec/.jshintrc
new file mode 100644
index 0000000..17eae32
--- /dev/null
+++ b/spec/.jshintrc
@@ -0,0 +1,11 @@
+{
+    "node": true
+  , "bitwise": true
+  , "undef": true
+  , "trailing": true
+  , "quotmark": true
+  , "indent": 4
+  , "unused": "vars"
+  , "latedef": "nofunc"
+  , "jasmine": true
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message