Add a wrapper around CoffeeLint as an ArcanistExternalLinter.
Depends on D9041.
Differential D9051
Add an `ArcanistCoffeeLintLinter` linter. joshuaspence on May 11 2014, 3:28 AM. Authored by Tags None Referenced Files
Subscribers
Details
Add a wrapper around CoffeeLint as an ArcanistExternalLinter. Depends on D9041. Wrote and executed unit tests.
Diff Detail
Event TimelineComment Actions I'm not sure what the correct way (or if there is even any means to do so) to set .arclint configuration from the *.lint-test file. This is why the unit tests are currently failing. Comment Actions Two minor issues, and my guesses on the config thing. I'm open to any approach, but tend to think a full-strength approach (e.g., provide a mechanism for test linters to execute in an arbitrary environment populated with nice config files) is probably not worth it and would be more than satisfied with a "don't bother unit testing it" approach: as long as it works in manual tests, it seems very unlikely to break by surprise (provided coffeelint doesn't, like, ignore unrecognized arguments or consider a bad config file to mean "whatever, ignore it and keep going").
Comment Actions I think that if it is easy enough for us to test, then we probably should. If nothing else, it makes sense to provide a range of test cases so that we can easily check if we remain compatible with the latest version of the external linter.
Comment Actions Ok, so specifying a config file works more than previously, but still ultimately fails because the UnitTestableLintEngine has a temporary working copy. I'll just remove these tests for now.
Comment Actions Closed by commit rARC1493e043e1e0 (authored by @joshuaspence, committed by @epriestley). |