mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Don’t check stub files for non-unused-code checks
This commit is contained in:
parent
ba8e5e8209
commit
fa43d3a8ff
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user