mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-18 19:54:04 +01:00
docs(ref): Add extend-ignore-words|identifiers-re examples
This commit is contained in:
1 parent
26e7af467c
commit
1a688e5521
1 file changed
+18
@@ -192,6 +192,15 @@ ERROR_FILENAME_EXCEDE_RANGE = "ERROR_FILENAME_EXCED_RANGE"
|
||||
|
||||
Pattern-match always-valid identifiers.
|
||||
|
||||
Example:
|
||||
```toml
|
||||
[default]
|
||||
extend-ignore-identifiers-re = [
|
||||
# identifiers with length <= 4 chars is likely noise
|
||||
"^[a-zA-Z]{1,4}$",
|
||||
]
|
||||
```
|
||||
|
||||
#### `default.extend-words`
|
||||
|
||||
- Type: table of strings
|
||||
@@ -214,6 +223,15 @@ tais = "taits"
|
||||
|
||||
Pattern-match always-valid words. Note: you must handle case insensitivity yourself.
|
||||
|
||||
Example:
|
||||
```toml
|
||||
[default]
|
||||
extend-ignore-words-re = [
|
||||
# words with length <= 4 chars is likely noise
|
||||
"^[a-zA-Z]{1,4}$",
|
||||
]
|
||||
```
|
||||
|
||||
#### `type.NAME.extend-glob`
|
||||
|
||||
- Type: list of strings
|
||||
|
||||
Reference in new issue
Block a user