[Pkg-mozext-commits] [requestpolicy] 151/257: [imp] start using JSHint
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 2e8962e73e32aebece8c29317a5fa4419c73de94
Author: Martin Kimmerle <dev at 256k.de>
Date: Mon Nov 30 22:39:11 2015 +0100
[imp] start using JSHint
---
.gitignore | 1 +
.jshintrc | 15 +++++++++++++++
Makefile | 9 +++++++++
3 files changed, 25 insertions(+)
diff --git a/.gitignore b/.gitignore
index d1c6ccb..20118fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
.*
!.gitignore
+!.jshintrc
!tests/content/.htaccess
*.jar
*.xpi
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..c4ae455
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,15 @@
+{
+ "curly": true,
+ "eqeqeq": true,
+ "esversion": 6,
+ "forin": true,
+ "freeze": true,
+ "latedef": "nofunc",
+ "maxcomplexity": 6,
+ "maxdepth": 5,
+ "moz": true,
+ "nonew": true,
+ "singleGroups": true,
+ "undef": true,
+ "unused": "vars"
+}
diff --git a/Makefile b/Makefile
index aea8cb8..76670c7 100644
--- a/Makefile
+++ b/Makefile
@@ -564,6 +564,15 @@ marionette: venv \
rm -rf $$profile_dir ; \
)
+# ____________________
+# static code analysis
+#
+
+.PHONY: static-analysis jshint
+static-analysis: jshint
+jshint:
+ jshint --extra-ext jsm --exclude '**/jquery.min.js' src/
+
# ________________
# "helper" targets
#
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list