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

Feature Request: no-banned-words rule #9

Open
radiovisual opened this issue Jun 3, 2024 · 0 comments
Open

Feature Request: no-banned-words rule #9

radiovisual opened this issue Jun 3, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@radiovisual
Copy link
Owner

Similar to the no-offensive-language list mentioned in #8, this rule could operate solely on a list of user-supplied words that they want to ensure are banned from any of the translation files (including the source file).

It could be configured to accept a text file, or json file (or either or) like this:

{
	"rules": {
		"no-banned-words": {
			"severity": "error",
			"bannedWordsDirectory": "path/to/banned/words/dir"
		}
	}
}

and the banned words directory could look like this where each file is there to represent the banned words for each locale:

banned-words/
├── de.txt
├── en.txt
└── fr.txt

The files could have one banned word on each line in the respective file

foo
bar
@radiovisual radiovisual added help wanted Extra attention is needed good first issue Good for newcomers labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant