Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

When is extend-glob required in a [type section? #871

Closed
paddyroddy opened this issue Nov 21, 2023 · 3 comments
Closed

When is extend-glob required in a [type section? #871

paddyroddy opened this issue Nov 21, 2023 · 3 comments

Comments

@paddyroddy
Copy link

I noticed that in the docs there is this example, but is the extend-glob required here? I tested a similar case where I omitted and it seemed to work.

[type.po]
extend-glob = ["*.po"]
check-file = false

I'm assuming this is useful if you have a file x.po1 that you'd like to treat like x.po.

@epage
Copy link
Collaborator

epage commented Nov 21, 2023

Extend glob is needed when

  • the type is previously undefined
  • you want to capture more cases

@paddyroddy
Copy link
Author

* the type is previously undefined

In my case, I was dealing with .tex files. What does undefined mean here?

@epage
Copy link
Collaborator

epage commented Dec 13, 2023

Undefined means its not reported in typos --type-list

@epage epage closed this as completed in 967534b Feb 19, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants