Skip to content

Instantly share code, notes, and snippets.

@mebiusbox
Last active September 1, 2024 07:22
Show Gist options
  • Save mebiusbox/e91ad9faafeb702527cc25f3f5178ba0 to your computer and use it in GitHub Desktop.
Save mebiusbox/e91ad9faafeb702527cc25f3f5178ba0 to your computer and use it in GitHub Desktop.
typos
# https://github.com/crate-ci/typos/blob/master/docs/reference.md
[files]
extend-exclude = [
"*.patch" # Automatically generated files that should not be manually modified.
]
[default]
extend-ignore-re = [
# spellchecker: disable-line, disable-next-line, disable, enable
# "(?Rm)^.*(#|//|/\\*)\\s*spellchecker:\\s*disable-line$",
# "(?m)^\\s*(?:#|//|/\\*)\\s*spellchecker:\\s*disable-next-line.*$\\r?\\n.*$",
# "(?s)(#|//|/\\*|<!--)\\s*spellchecker:\\s*disable.*?\\n\\s*(#|//|/\\*|<!--)\\s*spellchecker:\\s*enable"
]
extend-ignore-identifiers-re = [
]
# Corrections take the form of a key/value pair. The key is the incorrect word
# and the value is the correct word. If the key and value are the same, the
# word is treated as always correct. If the value is an empty string, the word
# is treated as always incorrect.
# Match Whole Word - Case Sensitive
[default.extend-identifiers]
# ba = "ba"
# Match Inside a Word - Case Insensitive
[default.extend-words]
# ba = "ba"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment