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 composer audit --ignore-severity option #12132

Merged
merged 5 commits into from
Oct 2, 2024

Conversation

jwpage
Copy link
Contributor

@jwpage jwpage commented Sep 27, 2024

This PR adds an --ignore-severity option to composer audit, allowing the user to ignore specified severity levels.

The --ignore-severity option can be passed multiple times, to ignore multiple levels (e.g. composer audit --ignore-severity=low --ignore-severity=medium). Ignored packages are still reported as ignored, similar to when using the ignore list.

The PR also includes minor code style fixes to the modified files, from php-cs-fixer using the provided config.


Example output screenshot:

image

@jwpage
Copy link
Contributor Author

jwpage commented Sep 27, 2024

The failing phpstan check appears to be related a recent push to the bleeding edge rules, not directly caused by the changes in this PR.

A fix for this is in a separate PR: Fix deprecated ParametersAcceptorSelector::selectSingle #12136

@Seldaek Seldaek added this to the 2.8 milestone Oct 2, 2024
@Seldaek Seldaek added the Feature label Oct 2, 2024
@Seldaek Seldaek merged commit 31d83b2 into composer:main Oct 2, 2024
20 checks passed
@Seldaek
Copy link
Member

Seldaek commented Oct 2, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants