Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLinter.php
Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | /* -( Executing Linters )-------------------------------------------------- */ | ||||
final public function raiseLintAtLine( | final public function raiseLintAtLine( | ||||
$line, | $line, | ||||
$char, | $char, | ||||
$code, | $code, | ||||
$description, | $description, | ||||
$original = null, | $original = null, | ||||
$replacement = null) { | $replacement = null) { | ||||
$message = id(new ArcanistLintMessage()) | $message = (new ArcanistLintMessage()) | ||||
->setPath($this->getActivePath()) | ->setPath($this->getActivePath()) | ||||
->setLine($line) | ->setLine($line) | ||||
->setChar($char) | ->setChar($char) | ||||
->setCode($this->getLintMessageFullCode($code)) | ->setCode($this->getLintMessageFullCode($code)) | ||||
->setSeverity($this->getLintMessageSeverity($code)) | ->setSeverity($this->getLintMessageSeverity($code)) | ||||
->setName($this->getLintMessageName($code)) | ->setName($this->getLintMessageName($code)) | ||||
->setDescription($description) | ->setDescription($description) | ||||
->setOriginalText($original) | ->setOriginalText($original) | ||||
▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0