mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Turn on unused code detection with --issues=all
This commit is contained in:
parent
6f5da23840
commit
24a484c9dc
@ -370,7 +370,7 @@ if ($config->find_unused_code) {
|
||||
|
||||
foreach ($keyed_issues as $issue_name => $_) {
|
||||
// MissingParamType requires the scanning of all files to inform possible params
|
||||
if (strpos($issue_name, 'Unused') !== false || $issue_name === 'MissingParamType') {
|
||||
if (strpos($issue_name, 'Unused') !== false || $issue_name === 'MissingParamType' || $issue_name === 'all') {
|
||||
$find_unused_code = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user