summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPavel Vomacka <pvomacka@redhat.com>2016-08-02 17:57:24 +0200
committerMartin Basti <mbasti@redhat.com>2016-08-09 12:59:54 +0200
commit58da5fb4b9e81e872e0b59c17263071f8b2889da (patch)
treefeeed9de77c98756b5fcf637fb36b21721102366 /Makefile
parent50c53395de7b5b4c62f3bc9004d2c7a94792339f (diff)
downloadfreeipa-58da5fb4b9e81e872e0b59c17263071f8b2889da.tar.gz
freeipa-58da5fb4b9e81e872e0b59c17263071f8b2889da.tar.xz
freeipa-58da5fb4b9e81e872e0b59c17263071f8b2889da.zip
Add jslint into Makefile
Also put jsl into dependencies. The patch also split lint target into more smaller targets. The purpose of this change is to add possibility to run only fast jslint by using make jslint and don't waste time with pylint, which can take a lot of time. https://fedorahosted.org/freeipa/ticket/6161 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d84927838..632430860 100644
--- a/Makefile
+++ b/Makefile
@@ -133,7 +133,7 @@ client-dirs:
echo "Without those directories ipa-client-install will fail" ; \
fi
-lint: bootstrap-autogen
+pylint: bootstrap-autogen
# find all python modules and executable python files outside modules for pylint check
FILES=`find . \
-type d -exec test -e '{}/__init__.py' \; -print -prune -o \
@@ -146,8 +146,14 @@ lint: bootstrap-autogen
-type f -exec grep -qsm1 '^#!.*\bpython' '{}' \; -print`; \
echo "Pylint is running, please wait ..."; \
PYTHONPATH=. pylint --rcfile=pylintrc $(PYLINTFLAGS) $$FILES || $(LINT_IGNORE_FAIL)
+
+po-validate:
$(MAKE) -C install/po validate-src-strings || $(LINT_IGNORE_FAIL)
+jslint:
+ cd install/ui; jsl -nologo -nosummary -nofilelisting -conf jsl.conf || $(LINT_IGNORE_FAIL)
+
+lint: pylint po-validate jslint
test:
./make-test