Bug: invalid regex in extend-ignore-identifiers-re
silently stops config file parsing
#881
Labels
bug
Not as expected
I found an error in the typos utility, I think. It seems that as soon as one entry in
extend-ignore-identifiers-re
is invalidthe parsing silently fails and causes that all other configurations, such as
[default.extend-identifiers]
and[default.extend-words]
are silently ignored. That's very unfortunate.One can verify this following these steps:
.typos.toml
with the following content:typos --config .typos.toml --dump-config - | grep 'foo'
foo(
in the configtypos --config .typos.toml --dump-config - | grep 'foo'
Expected Behaviour:
Typos should tell which regex is invalid and why it is invalid, instead of silently dropping that error. Furthermore, it should continue parsing the config file.
The text was updated successfully, but these errors were encountered: