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)
Thu, Nov 21, 11:39 AM
Unknown Object (File)
Sun, Nov 17, 12:52 AM
Unknown Object (File)
Sun, Nov 10, 4:20 AM
Unknown Object (File)
Fri, Nov 1, 6:20 PM
Unknown Object (File)
Wed, Oct 30, 7:41 PM
Unknown Object (File)
Wed, Oct 30, 1:37 PM
Unknown Object (File)
Tue, Oct 29, 6:32 AM
Unknown Object (File)
Sat, Oct 26, 1:32 AM
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