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)
Wed, Jan 29, 4:38 AM
Unknown Object (File)
Sat, Jan 25, 10:43 AM
Unknown Object (File)
Mon, Jan 20, 1:42 AM
Unknown Object (File)
Fri, Jan 17, 11:16 PM
Unknown Object (File)
Dec 18 2024, 6:46 AM
Unknown Object (File)
Dec 15 2024, 5:19 PM
Unknown Object (File)
Dec 15 2024, 5:19 PM
Unknown Object (File)
Dec 9 2024, 9:09 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