2019-10-25 10:17:58 -04:00
# `typos` Reference
## Configuration
### Sources
Configuration is read from the following (in precedence order)
- Command line arguments
2019-10-25 11:39:55 -04:00
- File specified via `--config PATH`
2020-10-30 09:33:43 -04:00
- Search parents of specified file / directory for one of `typos.toml` , `_typos.toml` , or `.typos.toml`
2019-10-25 10:17:58 -04:00
### Config Fields
| Field | Argument | Format | Description |
|------------------------|-------------------|--------|-------------|
2020-05-27 21:46:41 -04:00
| 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. |
2021-01-05 11:35:43 -05:00
| default.binary | --binary | bool | Check binary files as text |
2020-05-27 21:46:41 -04:00
| default.check-filename | \- | bool | Verifying spelling in file names. |
| default.check-file | \- | bool | Verifying spelling in files. |
2021-04-30 11:32:15 -04:00
| default.unicode | --unicode | bool | Allow unicode characters in identifiers (and not just ASCII) |
2020-05-27 21:46:41 -04:00
| 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. |
2021-03-01 21:37:05 -05:00
| default.locale | --locale | en, en-us, en-gb, en-ca, en-au | English dialect to correct to. |
2020-10-24 22:17:16 -04:00
| default.extend-identifiers | \- | table of strings | Corrections for identifiers. When the correction is blank, the word is never valid. When the correction is the key, the word is always valid. |
| default.extend-words | \- | table of strings | Corrections for identifiers. When the correction is blank, the word is never valid. When the correction is the key, the word is always valid. |
2021-04-06 22:14:35 -04:00
| type.< name > .< field > | < varied > | < varied > | See `default.` for child keys. Run with `--type-list` to see available `<name>` s |
| type.< name > .extend_globs | \- | list of strings | File globs for matching `<name>` |