Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPyFlakesLinter.php
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | foreach ($lines as $line) { | ||||
| if (preg_match($error_regexp, $description)) { | if (preg_match($error_regexp, $description)) { | ||||
| $severity = ArcanistLintSeverity::SEVERITY_ERROR; | $severity = ArcanistLintSeverity::SEVERITY_ERROR; | ||||
| } | } | ||||
| $message = new ArcanistLintMessage(); | $message = new ArcanistLintMessage(); | ||||
| $message->setPath($path); | $message->setPath($path); | ||||
| $message->setLine($matches[2]); | $message->setLine($matches[2]); | ||||
| $message->setCode($this->getLinterName()); | $message->setCode($this->getLinterName()); | ||||
| $message->setName($this->getLinterName()); | |||||
| $message->setDescription($description); | $message->setDescription($description); | ||||
| $message->setSeverity($severity); | $message->setSeverity($severity); | ||||
| $messages[] = $message; | $messages[] = $message; | ||||
| } | } | ||||
| return $messages; | return $messages; | ||||
| } | } | ||||
| protected function canCustomizeLintSeverities() { | protected function canCustomizeLintSeverities() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||