-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
41 lines (30 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SRC_DIR=.
all: clean sloc flakes lint csslint jshint xmllint clone
sloc:
sloccount --duplicates --wide --details $(SRC_DIR) | fgrep -v .git > sloccount.sc || :
test:
cd $(SRC_DIR) && nosetests --verbose --with-xunit --xunit-file=../xunit.xml --with-xcoverage --xcoverage-file=../coverage.xml || :
flakes:
find $(SRC_DIR) -name *.py|egrep -v '^./tests/'|xargs pyflakes > pyflakes.log || :
lint:
find $(SRC_DIR) -name *.py|egrep -v '^./tests/' | xargs pylint --output-format=parseable --reports=y > pylint.log || :
pep8 --ignore=E501 --repeat --show-source $(SRC_DIR) > pep8.log || :
csslint:
csslint --format=checkstyle-xml $(SRC_DIR) > csslint-result.xml || :
jshint:
jshint --verbose --reporter=checkstyle $(SRC_DIR) > jslint-result.xml || :
xmllint:
find -L . -regex ".*\.[cz]?xml|zcml" | xargs -r xmllint --noout 2>> xmllint.log >> xmllint-errors.log || :
clone:
clonedigger --cpd-output $(SRC_DIR) || :
clean:
rm -f pyflakes.log
rm -f pylint.log
rm -f sloccount.sc
rm -f output.xml
rm -f coverage.xml
rm -f xunit.xml
rm -f csslint-result.xml
rm -f jslint-result.xml
rm -f xmllint.log
rm -f xmllint-errors.log