diff --git a/src/lint/engine/comprehensive/ComprehensiveLintEngine.php b/src/lint/engine/comprehensive/ComprehensiveLintEngine.php index 6e0c0d26..2ef9466c 100644 --- a/src/lint/engine/comprehensive/ComprehensiveLintEngine.php +++ b/src/lint/engine/comprehensive/ComprehensiveLintEngine.php @@ -28,17 +28,6 @@ final class ComprehensiveLintEngine extends ArcanistLintEngine { $paths = $this->getPaths(); - // This needs to go first so that changes to generated files cause module - // linting. This linter also operates on removed files, because removing - // a file changes the static properties of a module. - $module_linter = new ArcanistPhutilModuleLinter(); - $linters[] = $module_linter; - foreach ($paths as $path) { - $module_linter->addPath($path); - } - - // Remaining lint engines operate on file contents and ignore removed - // files. foreach ($paths as $key => $path) { if (!$this->pathExists($path)) { unset($paths[$key]); diff --git a/src/lint/engine/phutil/PhutilLintEngine.php b/src/lint/engine/phutil/PhutilLintEngine.php index 881ec99f..34c31ea9 100644 --- a/src/lint/engine/phutil/PhutilLintEngine.php +++ b/src/lint/engine/phutil/PhutilLintEngine.php @@ -30,17 +30,13 @@ class PhutilLintEngine extends ArcanistLintEngine { $paths = $this->getPaths(); - // This needs to go first so that changes to generated files cause module - // linting. This linter also operates on removed files, because removing - // a file changes the static properties of a module. - $module_linter = new ArcanistPhutilModuleLinter(); - $linters[] = $module_linter; + $library_linter = new ArcanistPhutilLibraryLinter(); + $linters[] = $library_linter; foreach ($paths as $path) { - $module_linter->addPath($path); + $library_linter->addPath($path); } - // Remaining lint engines operate on file contents and ignore removed - // files. + // Remaining linters operate on file contents and ignore removed files. foreach ($paths as $key => $path) { if (!$this->pathExists($path)) { unset($paths[$key]);