tests/test-check-jshint.t
author Anton Shestakov <av6@dwimlabs.net>
Sat, 11 Nov 2017 15:07:21 +0800
changeset 35066 5d4369079c86
child 35605 45a816361926
permissions -rw-r--r--
tests: use jshint when available to check .js files

#require test-repo jshint hg10

  $ . "$TESTDIR/helpers-testrepo.sh"

run jshint on all tracked files ending in .js except vendored dependencies

  $ cd "`dirname "$TESTDIR"`"

  $ testrepohg locate 'set:**.js' \
  > -X mercurial/templates/static/excanvas.js \
  > 2>/dev/null \
  > | xargs jshint