Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistRubyLinter.php
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | foreach ($lines as $line) { | ||||
| } | } | ||||
| foreach ($matches as $key => $match) { | foreach ($matches as $key => $match) { | ||||
| $matches[$key] = trim($match); | $matches[$key] = trim($match); | ||||
| } | } | ||||
| $code = head(explode(',', $matches[3])); | $code = head(explode(',', $matches[3])); | ||||
| $message = new ArcanistLintMessage(); | $message = id(new ArcanistLintMessage()) | ||||
| $message->setPath($path); | ->setPath($path) | ||||
| $message->setLine($matches[2]); | ->setLine($matches[2]) | ||||
| $message->setCode($this->getLinterName()); | ->setDescription($matches[3]); | ||||
| $message->setName(pht('Syntax Error')); | |||||
| $message->setDescription($matches[3]); | |||||
| $message->setSeverity($this->getLintMessageSeverity($code)); | |||||
| $messages[] = $message; | $messages[] = $message; | ||||
| } | } | ||||
| return $messages; | return $messages; | ||||
| } | } | ||||
| } | } | ||||