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

No way to simply ignore a rule? #148

Closed
alexharv074 opened this issue Sep 25, 2020 · 3 comments
Closed

No way to simply ignore a rule? #148

alexharv074 opened this issue Sep 25, 2020 · 3 comments

Comments

@alexharv074
Copy link

I would like to ignore some of the rules. For example, I am getting RESOURCE_MISMATCH all over the place and I want to ignore this for now. Is this possible?

@0xdabbad00
Copy link
Collaborator

You can set a config override file as described here[1] and set the severity of RESOURCE_MISTMATCH to mute. Beware of recent issues identified with the config override if you try to use more advanced capabilities of it, as described here[2]

[1] https://github.com/duo-labs/parliament#custom-config-file
[2] #147

@alexharv074
Copy link
Author

@0xdabbad00 But no way to do this if you try to use parliament as a library?

@0xdabbad00
Copy link
Collaborator

You could call override_config like the CLI does here by passing it the path to a yaml file:

override_config(args.config)

The config structure that is modified is a global variable.

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

No branches or pull requests

2 participants