$modules[Filesystem::readablePath(dirname($file), $root)][] = $hash;
}
-echo "Found ".count($files)." in ".count($modules)." modules.\n";
+echo "Found ".count($files)." files in ".count($modules)." modules.\n";
$signatures = array();
foreach ($modules as $module => $hashes) {
if ($futures) {
echo "Found ".count($specs)." modules in cache; ".
"analyzing ".count($futures)." modified modules";
-} else {
- echo "All modules were found in cache.\n";
-}
-
-if ($futures) {
foreach (Futures($futures)->limit(8) as $module => $future) {
echo ".";
$specs[$module] = array(
);
}
echo "\n";
+} else {
+ echo "All modules were found in cache.\n";
}
$class_map = array();
echo "Writing module cache...\n";
Filesystem::writeFile(
- $root.'/.phutil_module_cache',
+ $root.'/.phutil_module_cache',
json_encode($specs));
echo "Done.\n";
if (!$this->pathExists($path)) {
unset($paths[$key]);
}
+ if (preg_match('@^externals/@', $path)) {
+ // Third-party stuff lives in /externals/; don't run lint engines
+ // against it.
+ unset($paths[$key]);
+ }
}
$generated_linter = new ArcanistGeneratedLinter();