-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: add frequent typo-catching rules #249
Conversation
I put those rules as 'formatting' though we may have 'typos' category maybe.. |
👋 Hi @jay7x! Thanks for your PR! We are currently a bit short on time, but we'll try to look at your code soon. |
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.
Some minor suggestions :-)
Ah! I see.. I missed somehow that BAD_XXX_LINE & GOOD_XXX_LINE are different for every test :-D |
As Salt is unable to catch some frequent typos there are few checks: - "onchange" (must be "onchanges") - "requires" (must be "require") - "content" (must be "contents")
Approved on my end, but I'd like a review by @roaldnefs as well. |
Any chance for this PR to be merged or declined soon? :-D |
Simplify the typographical error rules by creating a base `TypographicalErrorRule` that can be extended by a simple regex. This commit also adds the missing `CHANGELOG.md` entry. Signed-off-by: Roald Nefs <info@roaldnefs.com>
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.
Besides the missing CHANGELOG.md
entry I've made some minor changes by adding a TypographicalErrorRule
base rule that can easily be extended by any of the typographical error rules.
As Salt is unable to catch some frequent typos there are few checks: