typos
typos copied to clipboard
False Positive `UIU` should be `YOU`
typos 1.20.9
UIU of WebUIUPnp is being falsely detected as YOU
WebUI is an abbreviation/acronym for Web User Interface
UPnP is an abbreviation/acronym for Universal Plug and Play
Currently, our word splitting strictly follows CamelCase and so it splits checkWebUIUPnP as check Web UIU Pn P. You can see this by running typos --words
This is somewhat like #466 where some "identifiers" don't follow standard conventions. So far, we've not come up with a better plan for handling these cases.
These cases can be worked around by
- Marking that identifier valid
- Marking identifiers with
WebUIorUPnPas valid via regex
@epage Thanks for the tip!
Modified .typos.toml & now passed.
[default.extend-words]
BA = "BA"
helo = "helo"
UIU = "UIU"
Pn = "Pn"
It is rather
[default.extend-identifiers]
checkWebUIUPnP = "checkWebUIUPnP"