get-woke / woke

Detect non-inclusive language in your source code.
https://docs.getwoke.tech
MIT License
450 stars 61 forks source link

Exclude `.wokeignore` file in scans #243

Open jcraigk opened 1 year ago

jcraigk commented 1 year ago

If there is a file/path that includes a sensitive term in .wokeignore file, it will produce a warning. It seems like the intent of the file itself is to be ignored. For example, with the following .wokeignore content:

blacklist.jpg

Running woke produces the following output:

.wokeignore:1:0-9: `blacklist` may be insensitive, use `denylist`, `blocklist`, `exclusion list` instead (warning)
blacklist.jpg

To actually ignore these filenames, one must place .wokeignore itself in the .wokeignore file:

.wokeignore
blacklist.jpg

This is surprising behavior. Is it intended?

github-actions[bot] commented 1 year ago

👋 Thanks for submitting your first issue!

Please be sure to read and follow our Code of Conduct and Contributing guide.

⭐️ Is your org or open source project using woke? If so, we'd love for you to be included in the 'Who uses woke' list at https://github.com/get-woke/woke/blob/main/docs/about.md#who-uses-woke.