Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistCSSLintLinter.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | protected function parseLinterOutput($path, $err, $stdout, $stderr) { | ||||
foreach ($files as $file) { | foreach ($files as $file) { | ||||
foreach ($file->childNodes as $child) { | foreach ($file->childNodes as $child) { | ||||
$message = id(new ArcanistLintMessage()) | $message = id(new ArcanistLintMessage()) | ||||
->setPath($path) | ->setPath($path) | ||||
->setLine($child->getAttribute('line')) | ->setLine($child->getAttribute('line')) | ||||
->setChar($child->getAttribute('char')) | ->setChar($child->getAttribute('char')) | ||||
->setCode($this->getLinterName()) | ->setCode($this->getLinterName()) | ||||
->setName($this->getLinterName()) | |||||
->setDescription($child->getAttribute('reason')) | ->setDescription($child->getAttribute('reason')) | ||||
->setOriginalText( | ->setOriginalText( | ||||
substr( | substr( | ||||
$child->getAttribute('evidence'), | $child->getAttribute('evidence'), | ||||
$child->getAttribute('char') - 1)); | $child->getAttribute('char') - 1)); | ||||
switch ($child->getAttribute('severity')) { | switch ($child->getAttribute('severity')) { | ||||
case 'error': | case 'error': | ||||
Show All 33 Lines |