We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are quite a lot of unused use statements in our code base.
use
It would be helpful if composer lint would report these.
composer lint
There should be a NoUsedImports feature in PHPCS, but I can't get it to work somehow
NoUsedImports
There is no such sniff in PHPCS according to squizlabs/PHP_CodeSniffer#801 but we could use the php-cs-fixer for that:
php-cs-fixer fix --rules no_unused_imports ...
The text was updated successfully, but these errors were encountered:
TASK: Apply new linter fixes
1738c87
Related: #4949 #4580
Successfully merging a pull request may close this issue.
There are quite a lot of unused
use
statements in our code base.It would be helpful if
composer lint
would report these.There should be aNoUsedImports
feature in PHPCS, but I can't get it to work somehowThere is no such sniff in PHPCS according to squizlabs/PHP_CodeSniffer#801 but we could use the php-cs-fixer for that:
The text was updated successfully, but these errors were encountered: