We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have code with the following words: CC-BY-ND, or ND-JSON
Typos detects the ND as invalid because it expects AND, and it would be a normal typo if I was writing:
My favorite ice cream flavors are chocolate ND strawberry
but here CC-BY-ND, or ND-JSON are valid usage of ND
I had to exclude "ND", but it means I can no longer detect "chocolate ND strawberry"
I tried this
[default.extend-words] CC-BY-ND = "CC-BY-ND" ND-JSON = "ND-JSON"
and later a regexp
[default] extend-ignore-identifiers-re = [ "ND.JSON", "CC.BY.ND" ]
the ignore rules seems to catch only the word, not the context surrounding the word
I'm lucky because it's case-sensitive. I'm not likely to face ND in a text, and this would be detected
My favorite ice cream flavors are chocolate nd strawberry
But I would like to know there is something I could do about this
The text was updated successfully, but these errors were encountered:
This is a variant of #743 and #745. We consider "words" to be elements of an identifier. We only recognize identifiers with _ and not -
_
-
What can work for your is default.extend-ignore-re which accepts arbitrary regexes. Anything appearing within those regexes will be ignored.
default.extend-ignore-re
Sorry, something went wrong.
Thanks. I was indeed using extend-ignore-identifiers-re not extend-ignore-re
extend-ignore-identifiers-re
extend-ignore-re
Problem solved, thanks
No branches or pull requests
I have code with the following words: CC-BY-ND, or ND-JSON
Typos detects the ND as invalid because it expects AND, and it would be a normal typo if I was writing:
but here CC-BY-ND, or ND-JSON are valid usage of ND
I had to exclude "ND", but it means I can no longer detect "chocolate ND strawberry"
I tried this
and later a regexp
the ignore rules seems to catch only the word, not the context surrounding the word
I'm lucky because it's case-sensitive. I'm not likely to face ND in a text, and this would be detected
But I would like to know there is something I could do about this
The text was updated successfully, but these errors were encountered: