Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLinter.php
| Show First 20 Lines • Show All 568 Lines • ▼ Show 20 Lines | switch ($key) { | ||||
| } | } | ||||
| } | } | ||||
| $this->setCustomSeverityRules($value); | $this->setCustomSeverityRules($value); | ||||
| return; | return; | ||||
| case 'standard': | case 'standard': | ||||
| $standards = (array)$value; | $standards = (array)$value; | ||||
| foreach ($standards as $standard) { | foreach ($standards as $standard_name) { | ||||
| $standard = ArcanistLinterStandard::getStandard($value, $this); | $standard = ArcanistLinterStandard::getStandard( | ||||
| $standard_name, | |||||
| $this); | |||||
| foreach ($standard->getLinterConfiguration() as $k => $v) { | foreach ($standard->getLinterConfiguration() as $k => $v) { | ||||
| $this->setLinterConfigurationValue($k, $v); | $this->setLinterConfigurationValue($k, $v); | ||||
| } | } | ||||
| $this->addCustomSeverityMap($standard->getLinterSeverityMap()); | $this->addCustomSeverityMap($standard->getLinterSeverityMap()); | ||||
| } | } | ||||
| return; | return; | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||