tests/test-check-jshint.t
author Pulkit Goyal <7895pulkit@gmail.com>
Tue, 11 Aug 2020 13:43:43 +0530
changeset 45386 034d94f8761b
parent 35605 45a816361926
permissions -rw-r--r--
requirements: introduce constants for `shared` and `relshared` requirements We add them to `WORKING_DIR_REQUIREMENTS` too as they should be stored in `.hg/requires` and have information about the type of working copy. Differential Revision: https://phab.mercurial-scm.org/D8926

#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