tests/test-check-jshint.t
author Pulkit Goyal <7895pulkit@gmail.com>
Sat, 08 Aug 2020 10:13:37 -0700
changeset 45372 909dafff6a78
parent 35605 45a816361926
permissions -rw-r--r--
store: refactor space delimited list to proper data structure There is no good reason why are having a space delimited list and then using `.split()` to get the actual list. Let's convert this into a proper collection. Differential Revision: https://phab.mercurial-scm.org/D8908

#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