Skip to content

Output which rules are being applied #636

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

Closed
lornajane opened this issue Apr 3, 2025 · 1 comment
Closed

Output which rules are being applied #636

lornajane opened this issue Apr 3, 2025 · 1 comment
Labels

Comments

@lornajane
Copy link

I have a config file with five rules in it. I'm not sure what I am doing wrong but the output of vacuum lint mentions

 INFO  Linting file 'shared/openapi.yaml' against 3 rules: https://quobix.com/vacuum/rulesets/no-rules

Could we add some option for getting the list of rules that will be used, or that were recognised, or something? I think this would also be important for writing custom rules and seeing any that haven't parsed correctly.

daveshanley added a commit that referenced this issue May 13, 2025
new flag `—min-score` added to `lint` and `report` commands. This will set a minimum score to be hit, otherwise vacuum will return an error code, useful for CI/CD to break the pipline if a score drops below a minimum value

Also, addresses #636 by adding a new `—show-rules` flag to the `lint` command that will print out a list of the rules being applied.
@daveshanley daveshanley mentioned this issue May 13, 2025
daveshanley added a commit that referenced this issue May 13, 2025
new flag `—min-score` added to `lint` and `report` commands. This will set a minimum score to be hit, otherwise vacuum will return an error code, useful for CI/CD to break the pipline if a score drops below a minimum value

Also, addresses #636 by adding a new `—show-rules` flag to the `lint` command that will print out a list of the rules being applied.
@daveshanley
Copy link
Owner

daveshanley commented May 13, 2025

This has been implemented in v.16.9

--show-rules has been added to the lint command.

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

No branches or pull requests

2 participants