Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistGoLintLinter.php
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | foreach ($lines as $line) { | ||||
| $matches = explode(':', $line, 4); | $matches = explode(':', $line, 4); | ||||
| if (count($matches) === 4) { | if (count($matches) === 4) { | ||||
| $message = new ArcanistLintMessage(); | $message = new ArcanistLintMessage(); | ||||
| $message->setPath($path); | $message->setPath($path); | ||||
| $message->setLine($matches[1]); | $message->setLine($matches[1]); | ||||
| $message->setChar($matches[2]); | $message->setChar($matches[2]); | ||||
| $message->setCode($this->getLinterName()); | $message->setCode($this->getLinterName()); | ||||
| $message->setName($this->getLinterName()); | |||||
| $message->setDescription(ucfirst(trim($matches[3]))); | $message->setDescription(ucfirst(trim($matches[3]))); | ||||
| $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE); | $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE); | ||||
| $messages[] = $message; | $messages[] = $message; | ||||
| } | } | ||||
| } | } | ||||
| return $messages; | return $messages; | ||||
| } | } | ||||
| } | } | ||||