]> khamidou — GitHub mirrors - arcanist.git/commit
Don't pass data to `jshint` via STDIN
authorJoshua Spence <josh@joshuaspence.com>
Mon, 6 Apr 2015 21:26:09 +0000 (07:26 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 6 Apr 2015 21:26:10 +0000 (07:26 +1000)
commit4b2d8e3f69c2bdd672a490b306315f57e7729a09
treeb7983e023a0276c9fc9ea273e70d81cbf9afa654
parent637832d06f0eb74296cd5bc7b44cbe4d59b92567
Don't pass data to `jshint` via STDIN

Summary: Fixes T7464. JSHint is unable to exclude files from linting (via the `jshintignore` file) if the data is piped through `STDIN`. An alternative would be to pass `$options[] = '--filename='.$this->getActivePath()`, but `$this->getActivePath()` is not set when the command arguments are constructed.

Test Plan: Created a file and linted it with `ArcanistJSHintLinter`. Was able to exclude the file from linting with a `jshintignore` file.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T7464

Differential Revision: https://secure.phabricator.com/D12298
src/lint/linter/ArcanistJSHintLinter.php