diff --git a/src/lint/linter/ArcanistLinter.php b/src/lint/linter/ArcanistLinter.php index ec7a7596..a96f8e67 100644 --- a/src/lint/linter/ArcanistLinter.php +++ b/src/lint/linter/ArcanistLinter.php @@ -151,17 +151,6 @@ abstract class ArcanistLinter { return $this->messages; } - protected function newLintAtLine($line, $char, $code, $desc) { - return id(new ArcanistLintMessage()) - ->setPath($this->getActivePath()) - ->setLine($line) - ->setChar($char) - ->setCode($this->getLintMessageFullCode($code)) - ->setSeverity($this->getLintMessageSeverity($code)) - ->setName($this->getLintMessageName($code)) - ->setDescription($desc); - } - protected function raiseLintAtLine( $line, $char, @@ -170,7 +159,14 @@ abstract class ArcanistLinter { $original = null, $replacement = null) { - $message = $this->newLintAtLine($line, $char, $code, $desc) + $message = id(new ArcanistLintMessage()) + ->setPath($this->getActivePath()) + ->setLine($line) + ->setChar($char) + ->setCode($this->getLintMessageFullCode($code)) + ->setSeverity($this->getLintMessageSeverity($code)) + ->setName($this->getLintMessageName($code)) + ->setDescription($desc) ->setOriginalText($original) ->setReplacementText($replacement);