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

[fix] Don't enable checkers by suffix #4307

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

bruntib
Copy link
Contributor

@bruntib bruntib commented Aug 1, 2024

Currently, checkers can be enabled by checker name prefix. For example, "--enable unix" enables all checkers starting with "unix". However, checkers shouldn't be enabled by suffix match: "--enable Malloc" shouldn't enable "unix.Malloc" checker.

The source of the confusion was that having "unix.Stream" checker in the "default" profile also enabled "alpha.unix.Stream", which is not an intended behavior.

Currently, checkers can be enabled by checker name prefix. For example,
"--enable unix" enables all checkers starting with "unix". However,
checkers shouldn't be enabled by suffix match: "--enable Malloc"
shouldn't enable "unix.Malloc" checker.

The source of the confusion was that having "unix.Stream" checker in
the "default" profile also enabled "alpha.unix.Stream", which is not
an intended behavior.
@bruntib bruntib added CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands bugfix 🔨 labels Aug 1, 2024
@bruntib bruntib added this to the release 6.24.1 milestone Aug 1, 2024
@bruntib bruntib requested a review from vodorok as a code owner August 1, 2024 14:21
Copy link
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not find any mention in the documentation of postfix matching checkers in the enable list, so the docs dont need to be updated. LGTM.

@dkrupp dkrupp merged commit 62791cb into Ericsson:master Aug 2, 2024
7 of 8 checks passed
@bruntib bruntib deleted the dont_enable_by_suffix branch August 3, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix 🔨 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants