Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPhpcsLinter.php
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | foreach ($files as $file) { | ||||
$prefix = 'E'; | $prefix = 'E'; | ||||
} else { | } else { | ||||
$prefix = 'W'; | $prefix = 'W'; | ||||
} | } | ||||
$source = $child->getAttribute('source'); | $source = $child->getAttribute('source'); | ||||
$code = 'PHPCS.'.$prefix.'.'.$source; | $code = 'PHPCS.'.$prefix.'.'.$source; | ||||
$message = id(new ArcanistLintMessage()) | $message = (new ArcanistLintMessage()) | ||||
->setPath($path) | ->setPath($path) | ||||
->setName($source) | ->setName($source) | ||||
->setLine($child->getAttribute('line')) | ->setLine($child->getAttribute('line')) | ||||
->setChar($child->getAttribute('column')) | ->setChar($child->getAttribute('column')) | ||||
->setCode($code) | ->setCode($code) | ||||
->setDescription($child->nodeValue) | ->setDescription($child->nodeValue) | ||||
->setSeverity($this->getLintMessageSeverity($code)); | ->setSeverity($this->getLintMessageSeverity($code)); | ||||
Show All 27 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