Skip to content

Commit ae0de18

Browse files
committed
docs(ref): Report regex workarounds for inline ignores
1 parent 74c3448 commit ae0de18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/reference.md

+4
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@ Configuration is read from the following (in precedence order)
3838
| type.\<name>.\<field> | \<varied> | \<varied> | See `default.` for child keys. Run with `--type-list` to see available `<name>`s |
3939
| type.\<name>.extend-glob | \- | list of strings | File globs for matching `<name>` |
4040

41+
Common `extend-ignore-re`:
42+
- Line ignore with trailing `# spellchecker:disable-line`: `"(?Rm)^.*#\\s*spellchecker:disable-line$"`
43+
- Line block with `# spellchecker:<on|off>`: `"#\\s*spellchecker:off\\s*\\n.*\\n\\s*#\\s*spellchecker:on"`
44+
4145
Common `extend-ignore-identifiers-re`:
4246
- SSL Cipher suites: `"\\bTLS_[A-Z0-9_]+(_anon_[A-Z0-9_]+)?\\b"`

0 commit comments

Comments
 (0)