Page MenuHomePhabricator

Don't pass data to `jshint` via STDIN
ClosedPublic

Authored by joshuaspence on Apr 6 2015, 12:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 8:05 PM
Unknown Object (File)
Sun, Nov 3, 11:47 PM
Unknown Object (File)
Sun, Nov 3, 11:43 PM
Unknown Object (File)
Oct 18 2024, 9:02 PM
Unknown Object (File)
Oct 17 2024, 5:49 AM
Unknown Object (File)
Oct 9 2024, 12:46 AM
Unknown Object (File)
Oct 7 2024, 10:58 PM
Unknown Object (File)
Sep 20 2024, 9:01 PM
Subscribers

Details

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.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Don't pass data to `jshint` via STDIN.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

This approach is consistent with my intent via T7674.

This revision is now accepted and ready to land.Apr 6 2015, 12:45 PM
This revision was automatically updated to reflect the committed changes.