[Pkg-mozext-commits] [requestpolicy] 176/257: [imp] start using JSCS
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:10 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 0224796b8f420217300f2185d7960c643af6602f
Author: Martin Kimmerle <dev at 256k.de>
Date: Tue Dec 1 17:25:05 2015 +0100
[imp] start using JSCS
http://jscs.info
---
.gitignore | 1 +
.jscsrc | 10 ++++++++++
Makefile | 4 +++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 20118fd..79826f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
.*
!.gitignore
!.jshintrc
+!.jscsrc
!tests/content/.htaccess
*.jar
*.xpi
diff --git a/.jscsrc b/.jscsrc
new file mode 100644
index 0000000..a3df8eb
--- /dev/null
+++ b/.jscsrc
@@ -0,0 +1,10 @@
+{
+ "preset": "google",
+ "fileExtensions": [".js", ".jsm"],
+ "validateQuoteMarks": "\"",
+ "esnext": true,
+ "requireParenthesesAroundIIFE": true,
+ "excludeFiles": [
+ "**/jquery.min.js"
+ ]
+}
diff --git a/Makefile b/Makefile
index 76670c7..40dcd17 100644
--- a/Makefile
+++ b/Makefile
@@ -569,9 +569,11 @@ marionette: venv \
#
.PHONY: static-analysis jshint
-static-analysis: jshint
+static-analysis: jshint jscs
jshint:
jshint --extra-ext jsm --exclude '**/jquery.min.js' src/
+jscs:
+ jscs 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