You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/03/07 15:51:17 UTC

[5/5] git commit: Fix up checkjs script.

Fix up checkjs script.


Project: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/commit/3e22a6ff
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/3e22a6ff
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/3e22a6ff

Branch: refs/heads/master
Commit: 3e22a6ffc156e7ebfb3c5896bb568cf4264992d3
Parents: 33e9d0d
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Mar 6 22:39:37 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Mar 6 22:41:59 2014 -0500

----------------------------------------------------------------------
 checkjs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/3e22a6ff/checkjs
----------------------------------------------------------------------
diff --git a/checkjs b/checkjs
index b62fa32..3d104f1 100755
--- a/checkjs
+++ b/checkjs
@@ -21,5 +21,10 @@
 # USAGE
 #   ./checkjs
 #
+
+if ! which jshint; then
+  echo "jshint not installed. Install it with: npm install -g jshint"
+  exit 1
+fi
 echo "Running jsHint"
-jshint www/cdvah_js/ --verbose --show-non-errors
+jshint www/ --exclude www/cdvah/js/libs --verbose --show-non-errors