Page MenuHomePhabricator

Call willLintPath() hook from PhutilLinter
ClosedPublic

Authored by epriestley on Jan 17 2014, 1:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 1, 9:50 PM
Unknown Object (File)
Sat, Aug 31, 12:12 PM
Unknown Object (File)
Tue, Aug 27, 7:39 PM
Unknown Object (File)
Sun, Aug 25, 7:37 AM
Unknown Object (File)
Sat, Aug 24, 8:17 PM
Unknown Object (File)
Thu, Aug 22, 9:11 PM
Unknown Object (File)
Thu, Aug 22, 9:11 PM
Unknown Object (File)
Thu, Aug 22, 9:11 PM
Subscribers

Details

Summary

Some callpaths end up here, which doesn't cause the internal linter's willLintPath() method. This can mean its activePath is set wrong, which results in us raising lint for the wrong file.

Particularly, if you apply D7979 (diff 18069) and arc lint it, you'll get a syntax error message in the wrong file.

Test Plan

Applied D7979 and linted it, got proper error message.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped