-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Narrow down typos ignores #16673
Narrow down typos ignores #16673
Conversation
szepeviktor
commented
Feb 25, 2024
•
edited
Loading
edited
- remove ignored files
- check dotfiles
- reorder config sections: files, regexp, words, IDs
- remove non-existent ignores
💡 It would be nice to rename plural Latin variables names.
|
"*.rast", | ||
"crates/parser/test_data/lexer/err/*", |
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.
these are auto generated, IMO they should be exclude, since other typos occur here in the furture
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.
Reverted.
.typos.toml
Outdated
'"flate2"', | ||
'IDENT "SER"', | ||
"raison d'être", |
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.
I don't think extend-ignore-re
is the rigth place for them
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.
words and identifiers couldn't help here, e.g. adding SER
to identifiers will hide future typos of "SET"
.typos.toml
Outdated
"bench_data/*", | ||
] | ||
[default.extend-identifiers] | ||
0onoDigit = "0onoDigit" |
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.
I think this is excluded now?
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.
Yes.
Removed.
.typos.toml
Outdated
# ignore generated content like `boxed....nner()`, `Defaul...efault` | ||
"\\w*\\.{3,4}\\w*", | ||
'"flate2"', | ||
'IDENT "SER"', |
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.
Same for this one? And we could also ignore crates/project-model/test_data/*
, I don't think there's anything useful in there.
And would you mind squashing at the end?
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.
As you wish.
Now comes the squashing ...
Thanks! @bors r+ |
Glad to contribute. |
☀️ Test successful - checks-actions |