Cannot exclude false positive in file names
szepeviktor opened this issue · comments
Viktor Szépe commented
error: `olt` should be `old`
--> ./include/olt-manager.php:1
Please help me where to exclude "olt-manager".
It is bad practice to exclude "olt" in extend-words
.
I'd like to exclude only the false positive in the file name, not its contents.
Ed Page commented
As -
is not considered an identifier separator to use extend-identifiers
, you can either
- put
olt
inextend-words
(imo that is finebecause it is a word-like within your codebase) - Use
extend-ignore-re
to ignore arbitrary patterns
Viktor Szépe commented
Thank you. I've tried
[default]
extend-ignore-re = [
"olt-manager",
]
but it is not ignored.
put
olt
inextend-words
(imo that is finebecause it is a word-like within your codebase)
I'd like to catch all other "olt" typos.
Ed Page commented
Huh, we never did that check for file names. That is now fixed