Changeset View
Changeset View
Standalone View
Standalone View
src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | foreach ($config['linters'] as $name => $spec) { | ||||
"Available linters are: %s.", | "Available linters are: %s.", | ||||
$name, | $name, | ||||
$type, | $type, | ||||
implode(', ', array_keys($linters)))); | implode(', ', array_keys($linters)))); | ||||
} | } | ||||
$linter = clone $linters[$type]; | $linter = clone $linters[$type]; | ||||
$linter->setEngine($this); | $linter->setEngine($this); | ||||
$linter->willSetLinterConfiguration($spec); | |||||
$more = $linter->getLinterConfigurationOptions(); | $more = $linter->getLinterConfigurationOptions(); | ||||
foreach ($more as $key => $option_spec) { | foreach ($more as $key => $option_spec) { | ||||
PhutilTypeSpec::checkMap( | PhutilTypeSpec::checkMap( | ||||
$option_spec, | $option_spec, | ||||
array( | array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'help' => 'string', | 'help' => 'string', | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |