-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
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
excludes are relative to current directory, not typos.toml
location
#593
Comments
If resolving this, a question would be what to do for |
This fixes issues with typos, see: crate-ci/typos#593
It seems the toml file it is ignored if I call the file directly. [files]
extend-exclude = ["*.sops.*"] If I run
Which is unexpected because the config file exists. My lefthook pre-commit has Further, it seems to me typos should understand that the word "Ba" was found in a long string with high entropy, so it should not flag this as an error ever. |
Even calling |
When
$DIR/typos.toml
containsand we run
typos
in$DIR
, the filea/test.txt
is correctly excluded. But whentypos
is run in$DIR/a
, the exclude is not respected:When
typos.toml
excludes*.txt
both cases work, so the issue is not caused by ignoring the configuration in the parent directory:It would make sense to interpret the excludes relative to the
typos.toml
location.(tested with
typos
1.12.8 binary from the GitHub release)The text was updated successfully, but these errors were encountered: