Page MenuHomePhabricator

Allow `willLintPaths` and `didLintPaths` to be overridden
ClosedPublic

Authored by joshuaspence on Sep 3 2018, 5:24 AM.
Tags
None
Referenced Files
F14111255: D19630.diff
Wed, Nov 27, 8:51 PM
Unknown Object (File)
Sun, Nov 24, 10:28 PM
Unknown Object (File)
Thu, Nov 21, 3:24 AM
Unknown Object (File)
Sun, Nov 17, 1:48 PM
Unknown Object (File)
Thu, Oct 31, 4:24 AM
Unknown Object (File)
Thu, Oct 31, 4:22 AM
Unknown Object (File)
Oct 28 2024, 2:28 PM
Unknown Object (File)
Oct 19 2024, 7:57 AM

Details

Summary

I'm not sure if the upstream will be interested in this change, but we are writing a linter which works by running an external command on the entire repository. This can't be done with ArcanistExternalLinter at the moment, which meant that we ended up copy-pasting most of ArcanistFutureLinter. This would be a lot easier if we could override willLintPaths and didLintPaths, but these methods are currently marked as final. An alternative solution would be some sort of ArcanistLinter::transformPath method.

Test Plan

N/A

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 20726
Build 28174: Run Core Tests
Build 28173: arc lint + arc unit

Unit TestsFailed

TimeTest
409 msArcanistPuppetLintLinterTestCase::Unknown Unit Message ("")
Assertion failed, expected values to be equal (at ArcanistLinterTestCase.php:168): Some linters failed: - CommandException: Command failed with error #1! COMMAND
1,148 msArcanistRuboCopLinterTestCase::Unknown Unit Message ("")
In 'warning.lint-test', expected lint to raise warning on line 1 at char 11, but no warning was raised. Actually raised: No messages.
31 msArcanistAbstractMethodBodyXHPASTLinterRuleTestCase::Unknown Unit Message ("")
7 assertions passed.
12 msArcanistAbstractPrivateMethodXHPASTLinterRuleTestCase::Unknown Unit Message ("")
3 assertions passed.
12 msArcanistAliasFunctionXHPASTLinterRuleTestCase::Unknown Unit Message ("")
4 assertions passed.
View Full Test Results (2 Failed · 194 Passed · 62 Skipped)

Event Timeline

I believe it is nearly the end of days for this version of arc so I'm fine with just letting some stuff like this in.

This revision is now accepted and ready to land.Sep 4 2018, 3:30 PM

I believe it is nearly the end of days for this version of arc so I'm fine with just letting some stuff like this in.

What do you mean by this exactly?

T13098 is "happening" very "soon" quote unquote "quote" "unquote" "Soon™".

T13098 is "happening" very "soon" quote unquote "quote" "unquote" "Soon™".

make-it-rain

This revision was automatically updated to reflect the committed changes.