diff --git a/src/lint/linter/ArcanistClosureLinter.php b/src/lint/linter/ArcanistClosureLinter.php index 89097382..d437f3b6 100644 --- a/src/lint/linter/ArcanistClosureLinter.php +++ b/src/lint/linter/ArcanistClosureLinter.php @@ -1,7 +1,7 @@ $match) { - $matches[$key] = trim($match); - } - - $message = new ArcanistLintMessage(); - $message->setPath($path); - $message->setLine($matches[1]); - $message->setName($matches[2]); - $message->setCode($this->getLinterName()); - $message->setDescription($matches[3]); - $message->setSeverity($severity_code); + $message = id(new ArcanistLintMessage()) + ->setPath($path) + ->setLine($matches[1]) + ->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR) + ->setCode($this->getLinterName().$matches[2]) + ->setDescription($matches[3]); $messages[] = $message; }