-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add check for non-inclusive language #64
Conversation
lgtm - @Jakuje ok with you? |
I would probably propose to wait one week more if we will get a response from the upstream about merging your changes. There is The |
ok
I would prefer not to ignore all words in a given file. If I understand .wokeignore correctly, if we add a file to this, it will ignore all words in that file. There may be some words that we do not want to ignore, especially in README.md and other highly user visible files. But maybe this would be sufficient in .woke.yml? - name: master
terms:
- master
word_boundary: true I think this would reject but the problem here is that we are using a single .woke.yml for every role: https://github.com/linux-system-roles/ssh/pull/64/files#diff-4ceaaa93d3ad793c7dada5f77ec9b1064eb1434b545625b63d424127b0804e4fR17 and I'm not sure if we can apply this rule safely to every role It would be nice if woke had the option to allow certain words, and apply the rules in order, so that we could have something like - name: Allow ControlMaster
terms:
- ControlMaster
allow: true
- name: Master
terms:
- master
.... so it would apply the rules in order, see that ControlMaster is allowed, and skip checking for master. But then this gets tricky if you have something like
I'm hoping that
|
I meant only the files |
Ah, ok. Sounds good. |
What's currently done is by applying the patch get-woke/woke#252, we don't count this warning as an error (We set
Do you suggest we don't apply the patch get-woke/woke#252 to the |
That would be mu suggestion as we can really not avoid these terms in the openssh configuration and in the ssh role and having the warnings shown in every pull request or run of the CI is noisy. If we could avoid it, I would prefer that way. Using word boundary was one suggestion that I noticed while running through the documentation. Using |
I understand your concerns. Here's mine... By adding |
@Jakuje any further comments? Is this ok to merge now? |
Looks like there was no progress in the upstream. But I would still rather use the |
Ok. But in the future we need to work on some improvements to |
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.
looks better now.
We will have to figure out how to regenerate the template to retain the woke ignore comments (or .wokeignore
the template too?), but this can be handled later.
Yeah, I think we should |
Sorry, is the "template" in "we should .wokeignore the template" the generated config file |
Yes. This file is generated by .dev-tools/make_option_list using the files in
Yes. Then in the future we should work on |
- CHANGELOG.md - README.md - examples/simple.yml - tests/tests_global_config.yml Add .wokeignore for .dev-tools/options_body and templates/ssh_config.j2 Fix a yamllint failure and a typo. Signed-off-by: Noriko Hosoi <[email protected]>
Add a check for usage of terms and language that is considered non-inclusive. We are using the woke tool for this with a wordlist that can be found at https://github.com/linux-system-roles/tox-lsr/blob/main/src/tox_lsr/config_files/woke.yml Signed-off-by: Noriko Hosoi <[email protected]>
[1.1.13] - 2023-04-06 -------------------- ### Bug Fixes - Proper indent when lists are used in block (linux-system-roles#80) - add vars files for Rocky 8/9 (links) (linux-system-roles#81) ### Other Changes - fix shellcheck issues; fix ansible-lint issues in generation (linux-system-roles#69) - Add check for non-inclusive language (linux-system-roles#64) - Add README-ansible.md to refer Ansible intro page on linux-system-roles.github.io (linux-system-roles#78) - Fingerprint RHEL System Role managed config files (linux-system-roles#79) Signed-off-by: Rich Megginson <[email protected]>
[1.1.13] - 2023-04-06 -------------------- ### Bug Fixes - Proper indent when lists are used in block (#80) - add vars files for Rocky 8/9 (links) (#81) ### Other Changes - fix shellcheck issues; fix ansible-lint issues in generation (#69) - Add check for non-inclusive language (#64) - Add README-ansible.md to refer Ansible intro page on linux-system-roles.github.io (#78) - Fingerprint RHEL System Role managed config files (#79) Signed-off-by: Rich Megginson <[email protected]>
Add check for non-inclusive language
Add a check for usage of terms and language that is considered non-inclusive. We are using the woke tool for this with a wordlist that can be found at
https://github.com/linux-system-roles/tox-lsr/blob/main/src/tox_lsr/config_files/woke.yml
Note: this commit uses the customized woke placed locally in .github/actions/custom-woke-action to support a new option --count-only-error-for-failure option. The local action custom-woke-action will be replaced with the official woke once get-woke/woke#252 (Add an option "--count-only-error-for-failure") is processed.
Additional note: I had difficulty ignoring the word
ControlMaster
at https://github.com/linux-system-roles/ssh/blob/master/.dev-tools/options_body#L22 using# wokeignore:rule=master
. So, I used the customized woke to skip the warning words in this PR.Clean up / Workaround non-inclusive words
In addition, fixed a yamllint failure and a typo.