crate-ci / typos

Source code spell checker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot exclude false positive in file names

szepeviktor opened this issue · comments

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.

As - is not considered an identifier separator to use extend-identifiers, you can either

  • put olt in extend-words (imo that is finebecause it is a word-like within your codebase)
  • Use extend-ignore-re to ignore arbitrary patterns

Thank you. I've tried

[default]
extend-ignore-re = [
    "olt-manager",
]

but it is not ignored.

put olt in extend-words (imo that is finebecause it is a word-like within your codebase)

I'd like to catch all other "olt" typos.

Huh, we never did that check for file names. That is now fixed