-
Notifications
You must be signed in to change notification settings - Fork 74
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
Deprecate --rules in favor of rule-patterns #287
Conversation
Adjustments to make mypy and pytest happy.
There's really no reason for it to be a dict. This change makes it more consistent with similar inputs and simplifies some corner cases. Note the uniqueness test now is based on the actual pattern rather than the name (reason), and we no longer warn about duplicates because you can't overwrite a rule with one that does something different.
There was no good place to document a new configuration option like this, so I added it to the end of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🦅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
To help us get this pull request reviewed and merged quickly, please be sure to include the following items:
PR Type
What kind of change does this PR introduce?
Backward Compatibility
Is this change backward compatible with the most recently released version? Does it introduce changes which might change the user experience in any way? Does it alter the API in any way?
Issue Linking
Fixes #256
What's new?
rule-patterns
configuration option has been added to move the contents of rules files directly into the tartufo config file.--rules
option will now raise aDeprecationWarning
.