Skip to content
New issue

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

Add suggested-by flag for console output #218

Closed
icanhazstring opened this issue Oct 4, 2021 · 0 comments · Fixed by #261
Closed

Add suggested-by flag for console output #218

icanhazstring opened this issue Oct 4, 2021 · 0 comments · Fixed by #261
Labels
enhancement New feature or request

Comments

@icanhazstring
Copy link
Member

icanhazstring commented Oct 4, 2021

With the rework for version 0.8the suggested-by flag in the console output is still missing.
This feature needs to be added again so a package is marked as suggested-by by another package.

This should be done here:
https://github.com/composer-unused/composer-unused/blob/main/src/Console/Command/UnusedCommand.php#L134

If required PackageA is suggested by required PackageB, PackageA should get an entry that this package is suggest-by PackageB even if symbols from PackageA are not used directly in your code.

Example output:

 Used packages
 ✓ php
 ✓ composer-unused/symbol-parser
 ✓ nikic/php-parser (suggested by composer-unused/symbol-parser, ...)
 ✓ psr/container
 ✓ psr/log
@icanhazstring icanhazstring added enhancement New feature or request and removed hacktoberfest labels Nov 29, 2021
icanhazstring pushed a commit that referenced this issue Jan 3, 2022
Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
icanhazstring pushed a commit that referenced this issue Jan 3, 2022
Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant