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)
Mar 9 2026, 6:28 PM
Unknown Object (File)
Mar 8 2026, 9:48 AM
Unknown Object (File)
Mar 6 2026, 10:53 PM
Unknown Object (File)
Mar 4 2026, 7:03 AM
Unknown Object (File)
Jan 15 2026, 1:40 AM
Unknown Object (File)
Nov 29 2025, 9:31 AM
Unknown Object (File)
Nov 5 2025, 8:54 AM
Unknown Object (File)
Nov 4 2025, 3:57 PM
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