tests/test-check-jshint.t
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 17 Nov 2016 15:51:33 -0800
changeset 40372 81c80ed7c991
parent 35605 45a816361926
permissions -rw-r--r--
bundle2: fix broken compression engine assertion bundletype() is a function, so it needs to be called, and it is documented to return a 2-tuple. This code is untested, so that's why we haven't noticed the bad assertion. Differential Revision: https://phab.mercurial-scm.org/D5155

#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' \
  > 2>/dev/null \
  > | xargs jshint