blob: c5716295924c4cd2bea454626b31d314b147ac92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/crate-ci/typos",
description = "Source code spell checker",
},
command = "typos",
-- cannot use stdin, as otherwise `typos` has no information on the filename,
-- making excluded-file-configs ineffective
stdin = false,
args = {
"--write-changes",
"--force-exclude", -- so excluded files in the config take effect
"$FILENAME",
},
exit_codes = { 0, 2 },
}
|