mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
docs(ref): Report regex workarounds for inline ignores
This commit is contained in:
parent
74c34486c1
commit
ae0de188c1
1 changed files with 4 additions and 0 deletions
|
@ -38,5 +38,9 @@ Configuration is read from the following (in precedence order)
|
|||
| type.\<name>.\<field> | \<varied> | \<varied> | See `default.` for child keys. Run with `--type-list` to see available `<name>`s |
|
||||
| type.\<name>.extend-glob | \- | list of strings | File globs for matching `<name>` |
|
||||
|
||||
Common `extend-ignore-re`:
|
||||
- Line ignore with trailing `# spellchecker:disable-line`: `"(?Rm)^.*#\\s*spellchecker:disable-line$"`
|
||||
- Line block with `# spellchecker:<on|off>`: `"#\\s*spellchecker:off\\s*\\n.*\\n\\s*#\\s*spellchecker:on"`
|
||||
|
||||
Common `extend-ignore-identifiers-re`:
|
||||
- SSL Cipher suites: `"\\bTLS_[A-Z0-9_]+(_anon_[A-Z0-9_]+)?\\b"`
|
||||
|
|
Loading…
Reference in a new issue