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, May 7, 11:59 PM
Unknown Object (File)
Apr 1 2025, 5:56 PM
Unknown Object (File)
Mar 29 2025, 4:45 PM
Unknown Object (File)
Mar 25 2025, 7:47 PM
Unknown Object (File)
Mar 24 2025, 1:12 PM
Unknown Object (File)
Mar 24 2025, 10:42 AM
Unknown Object (File)
Mar 23 2025, 11:26 PM
Unknown Object (File)
Mar 19 2025, 7:29 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