Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLinter.php
| Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | return ($this->getLintMessageSeverity($code) !== | ||||
| ArcanistLintSeverity::SEVERITY_DISABLED); | ArcanistLintSeverity::SEVERITY_DISABLED); | ||||
| } | } | ||||
| final public function getLintMessageName($code) { | final public function getLintMessageName($code) { | ||||
| $map = $this->getLintNameMap(); | $map = $this->getLintNameMap(); | ||||
| if (isset($map[$code])) { | if (isset($map[$code])) { | ||||
| return $map[$code]; | return $map[$code]; | ||||
| } | } | ||||
| return "Unknown lint message!"; | return 'Unknown lint message!'; | ||||
| } | } | ||||
| final protected function addLintMessage(ArcanistLintMessage $message) { | final protected function addLintMessage(ArcanistLintMessage $message) { | ||||
| if (!$this->getEngine()->getCommitHookMode()) { | if (!$this->getEngine()->getCommitHookMode()) { | ||||
| $root = $this->getEngine()->getWorkingCopy()->getProjectRoot(); | $root = $this->getEngine()->getWorkingCopy()->getProjectRoot(); | ||||
| $path = Filesystem::resolvePath($message->getPath(), $root); | $path = Filesystem::resolvePath($message->getPath(), $root); | ||||
| $message->setPath(Filesystem::readablePath($path, $root)); | $message->setPath(Filesystem::readablePath($path, $root)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines | |||||