tests/test-check-jshint.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 09:11:54 +0200
changeset 47366 15f6887c9c68
parent 35605 45a816361926
permissions -rw-r--r--
verify: use some intermediate variables instead of a multi-liner This is shorter and easier to read as the indentation remains the same. Differential Revision: https://phab.mercurial-scm.org/D10818

#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