Page MenuHomePhabricator

Allow linters that extend `ArcanistExternalLinter` to customize the file parameter
ClosedPublic

Authored by champo on May 9 2014, 4:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 7:08 AM
Unknown Object (File)
Fri, Dec 6, 3:32 AM
Unknown Object (File)
Thu, Dec 5, 3:42 PM
Unknown Object (File)
Wed, Dec 4, 3:12 PM
Unknown Object (File)
Wed, Nov 27, 10:06 PM
Unknown Object (File)
Tue, Nov 26, 5:27 PM
Unknown Object (File)
Nov 22 2024, 10:39 PM
Unknown Object (File)
Oct 9 2024, 4:02 PM
Subscribers

Details

Summary

Not all linters run on a command file fashion. In particular, the maven checkstyle plugin runs like command --flag=file.

Test Plan

Run a linter that extends ArcanistExternalLinter.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

champo retitled this revision from to Allow linters that extend `ArcanistExternalLinter` to override the future.
champo updated this object.
champo edited the test plan for this revision. (Show Details)
champo added a reviewer: epriestley.

Sorry for the ninja diff, I was coding, got into it and forgot to log into IRC to check with you. We don't need this upstream 100% but it would be nice.

Hmm, let's add some kind of, like getPathArgumentForLinterFuture($path) instead, which defaults to return $path;? I'd rather not expose the entire future construction unless we have to. Subclasses might have difficulty implementing subtleties like stdin rules and eventual hook rules correctly, and this stuff could change later.

Yeah, that sounds better.

champo edited edge metadata.

Instead of overriding the future, add a method to customize the file parameter.

champo retitled this revision from Allow linters that extend `ArcanistExternalLinter` to override the future to Allow linters that extend `ArcanistExternalLinter` to customize the file parameter.May 11 2014, 12:09 AM
epriestley edited edge metadata.
This revision is now accepted and ready to land.May 11 2014, 11:25 PM
epriestley updated this revision to Diff 21506.

Closed by commit rARC377c585752b6 (authored by @champo, committed by @epriestley).