mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Delete newLintAtLine()
Summary: Nobody needs it because `raiseLintAtLine()` returns the message. Test Plan: $ arc unit Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4870
This commit is contained in:
parent
7f81058ead
commit
a3e0c26ea8
1 changed files with 8 additions and 12 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue