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

Expose rule groups like gender, sexuality, race, religion... #335

Open
etrobert opened this issue Nov 11, 2022 · 1 comment
Open

Expose rule groups like gender, sexuality, race, religion... #335

etrobert opened this issue Nov 11, 2022 · 1 comment

Comments

@etrobert
Copy link

etrobert commented Nov 11, 2022

Subject of the feature

Expose rule groups like gender, sexuality, race, religion...

Problem

For gradual adoption in our codebase, we would like to enable certain groups of rules by topic.

Expected behaviour

Allow to select rule groups in allow and deny, for example with deny: ['group:gender']

Alternatives

Ideally, this categorisation would be done by retext.

Alternatively, we are doing this same categorization in our local codebase.

@wooorm
Copy link
Member

wooorm commented Nov 11, 2022

Hmm. Interesting idea, to help folks adopt this gradually.
All messages have a ruleId. So they can definitely be filtered.
They don’t have a category through. That would be the thing to work on first.
I’m not really sure that these categories that are in retext-equality are great or precide though. They’re more... loose categorizations so we don’t have one giant file.

Maybe the diff functionality is a better way to start gradually? https://github.com/get-alex/alex#workflow.
Or, start with a smaller list of files and add more later?

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

No branches or pull requests

2 participants