Skip to content

Commit

Permalink
#62 Enable Psalm to find unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirsman committed Mar 4, 2022
1 parent 53825a3 commit 5a9c35c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Task/Psalm/PsalmTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function buildArguments(iterable $files): ProcessArgumentsCollection {
$arguments->addOptionalArgument('--report=%s', $config['report']);
$arguments->addOptionalArgument('--no-cache', $config['no_cache']);
$arguments->addOptionalArgument('--threads=%d', $config['threads']);
$arguments->add('--find-unused-code');
$arguments->addOptionalBooleanArgument('--show-info=%s', $config['show_info'], 'true', 'false');

foreach ($files as $file) {
Expand Down

0 comments on commit 5a9c35c

Please sign in to comment.