Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLinter.php
| Show First 20 Lines • Show All 285 Lines • ▼ Show 20 Lines | /* -( Executing Linters )-------------------------------------------------- */ | ||||
| /** | /** | ||||
| * Filter out paths which this linter doesn't act on (for example, because | * Filter out paths which this linter doesn't act on (for example, because | ||||
| * they are binaries and the linter doesn't apply to binaries). | * they are binaries and the linter doesn't apply to binaries). | ||||
| * | * | ||||
| * @param list<string> | * @param list<string> | ||||
| * @return list<string> | * @return list<string> | ||||
| */ | */ | ||||
| final private function filterPaths(array $paths) { | private function filterPaths(array $paths) { | ||||
| $engine = $this->getEngine(); | $engine = $this->getEngine(); | ||||
| $keep = array(); | $keep = array(); | ||||
| foreach ($paths as $path) { | foreach ($paths as $path) { | ||||
| if (!$this->shouldLintDeletedFiles() && !$engine->pathExists($path)) { | if (!$this->shouldLintDeletedFiles() && !$engine->pathExists($path)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines | |||||