Changeset View
Changeset View
Standalone View
Standalone View
src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | foreach ($config['linters'] as $name => $spec) { | ||||
$linter->setPaths($paths); | $linter->setPaths($paths); | ||||
$built_linters[] = $linter; | $built_linters[] = $linter; | ||||
} | } | ||||
return $built_linters; | return $built_linters; | ||||
} | } | ||||
private function loadAvailableLinters() { | private function loadAvailableLinters() { | ||||
return id(new PhutilClassMapQuery()) | return (new PhutilClassMapQuery()) | ||||
->setAncestorClass('ArcanistLinter') | ->setAncestorClass('ArcanistLinter') | ||||
->setUniqueMethod('getLinterConfigurationName', true) | ->setUniqueMethod('getLinterConfigurationName', true) | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
private function matchPaths( | private function matchPaths( | ||||
array $paths, | array $paths, | ||||
array $include, | array $include, | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 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