tests/test-check-jshint.t
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 11 Feb 2018 14:18:27 -0800
changeset 36084 a5cf79755eff
parent 35605 45a816361926
permissions -rw-r--r--
py3: open temporary file in binary mode Otherwise things fail later when we write bytes to the handle. Differential Revision: https://phab.mercurial-scm.org/D2148

#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