tests/test-check-jshint.t
author Pulkit Goyal <7895pulkit@gmail.com>
Tue, 26 Dec 2017 22:56:07 +0530
changeset 35503 b55a142f00c5
parent 35066 5d4369079c86
child 35605 45a816361926
permissions -rw-r--r--
scmutil: use a tuple of possible values instead of using startswith() This patch also adds a review comment which is helpful as inline comment. Differential Revision: https://phab.mercurial-scm.org/D1761

#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