[Pkg-mozext-commits] [requestpolicy] 12/50: [tst] Makefile: jshint_args, jscs_args

David Prévot taffit at moszumanska.debian.org
Mon Jun 27 12:50:30 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 01416eca1d7bac7e147b38a09ad6f6598d6af444
Author: Martin Kimmerle <dev at 256k.de>
Date:   Fri Apr 1 11:42:59 2016 +0200

    [tst] Makefile: jshint_args, jscs_args
---
 Makefile | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 46d2490..0595533 100644
--- a/Makefile
+++ b/Makefile
@@ -439,17 +439,20 @@ marionette: venv \
 # static code analysis
 #-------------------------------------------------------------------------------
 
+jshint_args :=
+jscs_args :=
+
 .PHONY: static-analysis jshint jscs
 static-analysis: jshint jscs
 jshint:
-	jshint --extra-ext jsm --exclude '**/jquery.min.js' src/
-	jshint tests/xpcshell/
-	jshint tests/helper-addons/
+	jshint --extra-ext jsm --exclude '**/jquery.min.js' $(jshint_args) src/
+	jshint $(jshint_args) tests/xpcshell/
+	jshint $(jshint_args) tests/helper-addons/
 jscs:
 	@echo '** NOTICE ** jscs is not run on "ruleset.jsm" because of its "yield" statement.'
-	cd src/; jscs .
-	cd tests/xpcshell/; jscs .
-	cd tests/helper-addons/; jscs .
+	cd src/; jscs $(jscs_args) .
+	cd tests/xpcshell/; jscs $(jscs_args) .
+	cd tests/helper-addons/; jscs $(jscs_args) .
 
 
 #===============================================================================

-- 
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