1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Don’t check stub files for non-unused-code checks

This commit is contained in:
Brown 2020-04-01 16:31:28 -04:00
parent ba8e5e8209
commit fa43d3a8ff

View File

@ -510,7 +510,7 @@ class ProjectAnalyzer
$this->codebase->analyzer->addFilesToShowResults($this->project_files);
if ($diff_files || $this->codebase->find_unused_code) {
if ($diff_files) {
$file_list = $this->getReferencedFilesFromDiff($diff_files);
// strip out deleted files
@ -527,6 +527,8 @@ class ProjectAnalyzer
} else {
$diff_no_files = true;
}
} else {
$diff_no_files = true;
}
}