Page MenuHomePhabricator

Allow `setCustomSeverityRules` to be overridden in subclasses
ClosedPublic

Authored by joshuaspence on May 13 2019, 4:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 3:53 AM
Unknown Object (File)
Tue, Apr 30, 9:07 AM
Unknown Object (File)
Mon, Apr 29, 3:59 PM
Unknown Object (File)
Sun, Apr 28, 8:29 PM
Unknown Object (File)
Fri, Apr 26, 4:46 PM
Unknown Object (File)
Fri, Apr 26, 8:02 AM
Unknown Object (File)
Wed, Apr 24, 11:51 PM
Unknown Object (File)
Fri, Apr 19, 3:13 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

I am writing a proxy linter that can be used to wrap any ArcanistExternalLinter and execute all commands within a Docker container (see [[https://github.com/freelancer/flarc/blob/master/src/lint/linter/ArcanistDockerContainerLinterProxy.php |ArcanistDockerContainerLinterProxy]] from [[https://github.com/freelancer/flarc | flarc]]). In order for ArcanistDockerContainerLinterProxy to behave like the ArcanistExternalLinter that is being proxied, final needs to be removed from some methods.

I figured this was reasonable to submit upstream as a similar change (D19630: Allow `willLintPaths` and `didLintPaths` to be overridden) was previously accepted.

Test Plan

N/A

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 22780
Build 31247: Run Core Tests
Build 31246: arc lint + arc unit

Unit TestsFailed

TimeTest
50 msArcanistPyFlakesLinterTestCase::testVersion
Assertion failed, expected 'true' (at ArcanistExternalLinterTestCase.php:10): Failed to parse version from command. ACTUAL VALUE
29 msArcanistAbstractMethodBodyXHPASTLinterRuleTestCase::testLinter
7 assertions passed.
12 msArcanistAbstractPrivateMethodXHPASTLinterRuleTestCase::testLinter
3 assertions passed.
12 msArcanistAliasFunctionXHPASTLinterRuleTestCase::testLinter
4 assertions passed.
12 msArcanistArrayCombineXHPASTLinterRuleTestCase::testLinter
3 assertions passed.
View Full Test Results (1 Failed · 197 Passed · 62 Skipped)

Event Timeline

Remove a TODO comment that is no longer relevant

This revision is now accepted and ready to land.May 14 2019, 2:10 PM