1
0
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:
Brown 2019-05-31 13:48:03 -04:00
parent 6f5da23840
commit 24a484c9dc

View File

@ -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;
}
}