Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPuppetLintLinter.php
| Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | foreach ($lines as $line) { | ||||
| if (count($matches) < 5) { | if (count($matches) < 5) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $message = id(new ArcanistLintMessage()) | $message = id(new ArcanistLintMessage()) | ||||
| ->setPath($path) | ->setPath($path) | ||||
| ->setLine($matches[0]) | ->setLine($matches[0]) | ||||
| ->setChar($matches[1]) | ->setChar($matches[1]) | ||||
| ->setCode($this->getLinterName()) | ->setCode($matches[3]) | ||||
| ->setName(ucwords(str_replace('_', ' ', $matches[3]))) | ->setName(ucwords(str_replace('_', ' ', $matches[3]))) | ||||
| ->setDescription(ucfirst($matches[4])); | ->setDescription(ucfirst($matches[4])); | ||||
| switch ($matches[2]) { | switch ($matches[2]) { | ||||
| case 'warning': | case 'warning': | ||||
| $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING); | $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING); | ||||
| break; | break; | ||||
| Show All 16 Lines | |||||