mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-28 12:01:06 -05:00
ab4a5bbdaf
The goal is to be as accepting and unobtrusive to new code bases as possible. To this end, we correct typos into the closest english dialect. If someone wants to opt-in, they can have typos correct to a specific english dialect. Fixes #52 Fixes #22
1.8 KiB
1.8 KiB
typos
Reference
Configuration
Sources
Configuration is read from the following (in precedence order)
- Command line arguments
- File specified via
--config PATH
- Search parents of specified file / directory for
typos.toml
Config Fields
Field | Argument | Format | Description |
---|---|---|---|
files.binary | --binary | bool | Check binary files as text |
files.ignore-hidden | --hidden | bool | Skip hidden files and directories. |
files.ignore-files | --ignore | bool | Respect ignore files. |
files.ignore-dot | --ignore-dot | bool | Respect .ignore files. |
files.ignore-vcs | --ignore-vcs | bool | Respect ignore files in vcs directories. |
files.ignore-global | --ignore-global | bool | Respect global ignore files. |
files.ignore-parent | --ignore-parent | bool | Respect ignore files in parent directories. |
default.check-filename | - | bool | Verifying spelling in file names. |
default.check-file | - | bool | Verifying spelling in files. |
default.ignore-hex | - | bool | Do not check identifiers that appear to be hexadecimal values. |
default.identifier-leading-digits | - | bool | Allow identifiers to start with digits, in addition to letters. |
default.identifier-include-digits | - | bool | Allow identifiers to include digits, in addition to letters. |
default.identifier-leading-chars | - | string | Allow identifiers to start with one of these characters. |
default.identifier-include-chars | - | string | Allow identifiers to include these characters. |
default.locale | - | en, en-us, en-gb, en-ca, en-au |