-
Notifications
You must be signed in to change notification settings - Fork 61
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
Allow exclusion of terms in .woke.yml
#245
Comments
You can also create a custom set of rules and leave out the words you think are acceptable. |
How do you do that? How can I create a rule e.g. to reject "master" but allow "ControlMaster"? |
@richm by setting |
@jcraigk With reference to the main question, the answer is already present in the documentation: https://docs.getwoke.tech/rules/#disabling-default-rules. All the default rules can be found in https://github.com/get-woke/woke/blob/main/pkg/rule/default.yaml You can either:
|
@Puneethgr thanks for the more elaborate writeup. |
@nicorikken Oh yes, correct. My answer was for jcraigk's main question.
Your answer was for richm's comment question. I didn't see that. Cool. Updated my older comment. |
There does not appear to be a way to exclude terms that a project may use heavily due to the content it serves. For example, a codebase that deals with historical subject matter may include the term "slave" in direct reference to slavery itself, in a respectful way. Or another example: a project that includes references to works of art with sensitive terms in the art/music titles. It would be nice to have a way of specifically ignoring all mentions of these terms without having to add inline comments or ignore entire files/paths in
.wokeignore
. I do not see a way of doing that in.woke.yml
either. Adding a directive likeallowed_terms
in.woke.yml
would be useful.The text was updated successfully, but these errors were encountered: