Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistJSONLintLinter.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | foreach ($lines as $line) { | ||||
| $matches); | $matches); | ||||
| if ($match) { | if ($match) { | ||||
| $message = new ArcanistLintMessage(); | $message = new ArcanistLintMessage(); | ||||
| $message->setPath($path); | $message->setPath($path); | ||||
| $message->setLine($matches['line']); | $message->setLine($matches['line']); | ||||
| $message->setChar($matches['column']); | $message->setChar($matches['column']); | ||||
| $message->setCode($this->getLinterName()); | $message->setCode($this->getLinterName()); | ||||
| $message->setName($this->getLinterName()); | |||||
| $message->setDescription(ucfirst($matches['description'])); | $message->setDescription(ucfirst($matches['description'])); | ||||
| $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR); | $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR); | ||||
| $messages[] = $message; | $messages[] = $message; | ||||
| } | } | ||||
| } | } | ||||
| return $messages; | return $messages; | ||||
| } | } | ||||
| } | } | ||||