Skip to content

Instantly share code, notes, and snippets.

@iffy
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iffy/9237287 to your computer and use it in GitHub Desktop.
Save iffy/9237287 to your computer and use it in GitHub Desktop.
jshint behaves differently for absolute paths and relative paths as far as ignoring goes
syntax error
$ find .
.
./bar
./bar/foo.js
./bar/wow
./bar/wow/foo.js
./ignorefile
12:59:04 [matt] /tmp/foo $ ../node_modules/jshint/bin/jshint --exclude-path /tmp/foo/ignorefile .
12:59:15 [matt] /tmp/foo $ ../node_modules/jshint/bin/jshint --exclude-path /tmp/foo/ignorefile /tmp/foo
/tmp/foo/bar/foo.js: line 1, col 1, Expected an assignment or function call and instead saw an expression.
/tmp/foo/bar/foo.js: line 1, col 7, Missing semicolon.
/tmp/foo/bar/foo.js: line 1, col 8, Expected an assignment or function call and instead saw an expression.
/tmp/foo/bar/foo.js: line 1, col 13, Missing semicolon.
/tmp/foo/bar/wow/foo.js: line 1, col 1, Expected an assignment or function call and instead saw an expression.
/tmp/foo/bar/wow/foo.js: line 1, col 7, Missing semicolon.
/tmp/foo/bar/wow/foo.js: line 1, col 8, Expected an assignment or function call and instead saw an expression.
/tmp/foo/bar/wow/foo.js: line 1, col 13, Missing semicolon.
8 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment