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 required-by flag for console output #219

Closed
icanhazstring opened this issue Oct 4, 2021 · 0 comments
Closed

Add required-by flag for console output #219

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

Comments

@icanhazstring
Copy link
Member

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

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

If required PackageA is required by a required PackageB, PackageA should get an entry that this package is required-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 (required 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

No branches or pull requests

1 participant