mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
docs: Missed a false-positive case
This commit is contained in:
parent
a33196d0d8
commit
7d1fbe5442
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
@ -66,7 +66,15 @@ AttributeIDSupressMenu = "AttributeIDSupressMenu"
|
|||
teh = "teh"
|
||||
```
|
||||
|
||||
For localized content, you might want to exclude the entire file
|
||||
For localized content, you can disable spell checking of file contents while still checking the file name:
|
||||
```toml
|
||||
[type.po]
|
||||
extend-globs = ["*.po"]
|
||||
check-file = false
|
||||
```
|
||||
(run `typos --type-list` to see configured file types)
|
||||
|
||||
If that doesn't catch the cases you can need, you can completely exclude some files from consideration:
|
||||
```toml
|
||||
[files]
|
||||
extend-exclude = ["localized/*.po"]
|
||||
|
|
Loading…
Reference in a new issue