Show More
@@ -0,0 +1,12 b'' | |||
|
1 | #require test-repo jshint hg10 | |
|
2 | ||
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
4 | ||
|
5 | run jshint on all tracked files ending in .js except vendored dependencies | |
|
6 | ||
|
7 | $ cd "`dirname "$TESTDIR"`" | |
|
8 | ||
|
9 | $ testrepohg locate 'set:**.js' \ | |
|
10 | > -X mercurial/templates/static/excanvas.js \ | |
|
11 | > 2>/dev/null \ | |
|
12 | > | xargs jshint |
@@ -444,6 +444,10 b' def has_clang_format():' | |||
|
444 | 444 | return matchoutput("clang-format --help", |
|
445 | 445 | br"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.") |
|
446 | 446 | |
|
447 | @check("jshint", "JSHint static code analysis tool") | |
|
448 | def has_jshint(): | |
|
449 | return matchoutput("jshint --version 2>&1", br"jshint v") | |
|
450 | ||
|
447 | 451 | @check("pygments", "Pygments source highlighting library") |
|
448 | 452 | def has_pygments(): |
|
449 | 453 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now