Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistCSSLintLinter.php
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | foreach ($files as $file) { | ||||
} | } | ||||
if ($char === '') { | if ($char === '') { | ||||
$char = null; | $char = null; | ||||
} else { | } else { | ||||
$original_text = substr($original_text, $char - 1); | $original_text = substr($original_text, $char - 1); | ||||
} | } | ||||
$message = id(new ArcanistLintMessage()) | $message = (new ArcanistLintMessage()) | ||||
->setPath($path) | ->setPath($path) | ||||
->setLine($line) | ->setLine($line) | ||||
->setChar($char) | ->setChar($char) | ||||
->setCode($this->getLinterName()) | ->setCode($this->getLinterName()) | ||||
->setName($this->getLinterName()) | ->setName($this->getLinterName()) | ||||
->setDescription($child->getAttribute('reason')) | ->setDescription($child->getAttribute('reason')) | ||||
->setOriginalText($original_text); | ->setOriginalText($original_text); | ||||
Show All 35 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0