-
Notifications
You must be signed in to change notification settings - Fork 256
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
Refactor/profanity checks #312
Conversation
Nice! I agree that the Zealous word list is a bit much, causing too many false positives. Regarding the |
I've added Rustrict to replace Censor. The reserved 'Shuttle.rs' is covered by other lowercase and punctuation restrictions so I've removed that but left the test in incase it's an issue in future. I've also removed some unused Crates from the common Cargo.toml, they don't seem to be being used anywhere. Thanks @oddgrd , it's a big help having some references included there to learn more from 😄 |
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.
Just one question about reserved words.
cargo sort --workspace
should fix the CI failure 😄
Reserved words added back in. I've left "shuttle.rs" in for now as an example. Would it be better to just leave it blank? With us not having any reserved words currently there's no examples to add in for testing purposes either. |
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.
Nice fixup @jmwill86! I think keeping shuttle.rs as a reserved word is perfect - we don't want it to be a project name and shouldn't rely on some other check which implicitly covers it
Fix/refactor based on user feedback on Discord:
I've removed the Censor::Zealous words as they didn't seem overly terrible in my opinion? I've removed some of the shorter words that might easily be within other words or phrases.
I'm not sure what the below line is/was for, it could be that it's a performance thing and my alternate way isn't ideal for some reason. I'll leave that to someone who knows more than I do on that front! Happy to make the changes though.