-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
docs: describe extended rules take precedence over base rules #1563
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
Conversation
README.md
Outdated
# the base rules take precedence over the extended rules. I.e., if there are | ||
# duplicate rules in both the base configuration and the extended configuration | ||
# the base rules will override the extended rules. | ||
# the extended rules take precedence over the base rules. I.e., if there are |
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.
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.
Yes, you are right. I somehow struggle a bit to suggest a proper text here. @rgmz Do you have a good suggestion?
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.
- "custom" would be a better word for the user-defined config. "base" can cause confusion, as it maybe misunderstood to refer the default config (gitleaks provided).
- Users would generally want "custom" user-defined config rules to take precedence (override) over the "inherited" rules from the extended / parent / default config.
- If there are exceptions on this overriding, it maybe noted.
I hope that these word suggestions help to form a better text here. Let me know if I can help.
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.
@zricethezav @rgmz @amithm7 I rewrote the README.md regarding extending rules, please take a look.
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.
ping
06edd8a
to
f4b58c0
Compare
f4b58c0
to
a84489b
Compare
@rgmz @zricethezav please close this PR if you see no value. |
That's up to @zricethezav: I have no permissions. Personally, I think it's a good change. |
fell off the radar, sorry about that. Thanks @bufferoverflow and @rgmz |
Closes #1384
Description:
Document actual behavior
Checklist: