-
Notifications
You must be signed in to change notification settings - Fork 113
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
Typos ignores files in .gitignore
, even when they are force-tracked in git
#909
Comments
If you run As for [type.images]
extend-glob = ["*.png"]
check-file = false That is saying to not check the content of |
Sorry, my bad, I tried to create a minimal example but that actually hid the actual issue I am facing: So the concrete situation looks like this:
and ![Options window with highlighted ModificationParameter UI representations](OptionsWindwoWithParametersExample.png) Now running
For some reason the typo is detected in the The part where things get weird for me is that I tried to isolate the problem by copying the folder (which is part of a much large project) into a separate directory from the rest of the project and there the output is:
which is exactly what I would expect. In both cases I ran typos with the folder being the working directory and no |
So the file name is not being checked when it is expected to be ... sometimes and why it hits in some cases but not others is not clear which makes providing a reproduction case hard. Is that correct? Some useful tools: Debug flags
Running with higher verbosity logging ( |
I found the issue. PNGs are in our Is this expected behavior? |
I assume this is a case where you ignored all of the files but you forced git to track this file, rather than modify your It is expected that we respect |
.gitignore
, even when they are force-tracked in git
I understand. Makes perfect sense. Thank you very much for your help. |
I have a situation where a typo in a
.png
file's name was corrected in the reference of a.md
file, but the name of the.png
file itself was not corrected.With the content of
my_docu.md
:now
typos
correctly fixes the typo inmy_docu.md
but does not fix the file name ofmy_tipo.png
which breaks the link.Are PNGs not checked in general? Is it possible to have them checked?
I tried adding this to my
_typos.toml
but it did nothing:The text was updated successfully, but these errors were encountered: