mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 08:12:40 +01:00
Allow setCustomSeverityRules
to be overridden in subclasses
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}) was previously accepted. Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D20514
This commit is contained in:
parent
4f583dded3
commit
fceac878f1
1 changed files with 1 additions and 4 deletions
|
@ -214,9 +214,6 @@ abstract class ArcanistLinter extends Phobject {
|
|||
return 1.0;
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: This should be `final`.
|
||||
*/
|
||||
public function setCustomSeverityMap(array $map) {
|
||||
$this->customSeverityMap = $map;
|
||||
return $this;
|
||||
|
@ -227,7 +224,7 @@ abstract class ArcanistLinter extends Phobject {
|
|||
return $this;
|
||||
}
|
||||
|
||||
final public function setCustomSeverityRules(array $rules) {
|
||||
public function setCustomSeverityRules(array $rules) {
|
||||
$this->customSeverityRules = $rules;
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue