Changeset View
Changeset View
Standalone View
Standalone View
src/lint/engine/PhutilLintEngine.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | public function buildLinters() { | ||||
$php_paths = preg_grep('/\.php$/', $paths); | $php_paths = preg_grep('/\.php$/', $paths); | ||||
$xhpast_linter = id(new ArcanistXHPASTLinter()) | $xhpast_linter = id(new ArcanistXHPASTLinter()) | ||||
->setCustomSeverityMap($this->getXHPASTSeverityMap()) | ->setCustomSeverityMap($this->getXHPASTSeverityMap()) | ||||
->setPaths($php_paths); | ->setPaths($php_paths); | ||||
$linters[] = $xhpast_linter; | $linters[] = $xhpast_linter; | ||||
$linters[] = id(new ArcanistPhutilXHPASTLinter()) | $linters[] = id(new ArcanistPhutilXHPASTLinter()) | ||||
->setXHPASTLinter($xhpast_linter) | |||||
->setPaths($php_paths); | ->setPaths($php_paths); | ||||
$merge_conflict_linter = id(new ArcanistMergeConflictLinter()); | $merge_conflict_linter = id(new ArcanistMergeConflictLinter()); | ||||
foreach ($paths as $path) { | foreach ($paths as $path) { | ||||
$merge_conflict_linter->addPath($path); | $merge_conflict_linter->addPath($path); | ||||
$merge_conflict_linter->addData($path, $this->loadData($path)); | $merge_conflict_linter->addData($path, $this->loadData($path)); | ||||
} | } | ||||
Show All 20 Lines |