tests/test-check-jshint.t
author Yuya Nishihara <yuya@tcha.org>
Tue, 03 Nov 2020 11:24:21 +0900
branchstable
changeset 45771 81da6feb5000
parent 35605 45a816361926
permissions -rw-r--r--
chg: reset errno prior to calling strtol() Otherwise we can't figure out if the last strtol() invocation failed or not.

#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