mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 01:25:12 +02:00
docs: Add reference
This commit is contained in:
@@ -8,9 +8,11 @@
|
||||

|
||||
[](https://crates.io/crates/typos)
|
||||
|
||||
## [About](docs/about.md)
|
||||
|
||||
## [Install](docs/install.md)
|
||||
|
||||
## [About](docs/about.md)
|
||||
## [Reference](docs/reference.md)
|
||||
|
||||
## [Contribute](CONTRIBUTING.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# `typos` Reference
|
||||
|
||||
## Configuration
|
||||
|
||||
### Sources
|
||||
|
||||
Configuration is read from the following (in precedence order)
|
||||
|
||||
- Command line arguments
|
||||
- Either
|
||||
- File specified via `--config PATH`
|
||||
- Search parents of specified file / directory for `typos.toml`
|
||||
|
||||
### Config Fields
|
||||
|
||||
| Field | Argument | Format | Description |
|
||||
|------------------------|-------------------|--------|-------------|
|
||||
| files.binary | --binary | bool | |
|
||||
| files.ignore-hidden | --hidden | bool | |
|
||||
| files.ignore-files | --ignore | bool | |
|
||||
| files.ignore-dot | --ignore-dot | bool | |
|
||||
| files.ignore-vcs | --ignore-vcs | bool | |
|
||||
| files.ignore-global | --ignore-global | bool | |
|
||||
| files.ignore-parent | --ignore-parent | bool | |
|
||||
| default.check-filename | \- | bool | |
|
||||
| default.check-file | \- | bool | |
|
||||
| default.ignore-hex | \- | bool | |
|
||||
| default.identifier-include-digits | \- | bool | |
|
||||
| default.identifier-include-chars | \- | string | |
|
||||
Reference in New Issue
Block a user