aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/codespell.lua
blob: 88e01091d6c70f27aff78983addbc59ddd398fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---@type conform.FileFormatterConfig
return {
  meta = {
    url = "https://github.com/codespell-project/codespell",
    description = "Check code for common misspellings.",
  },
  command = "codespell",
  stdin = false,
  args = {
    "$FILENAME",
    "--write-changes",
    "--check-hidden", -- conform's temp file is hidden
  },
  exit_codes = { 0, 65 }, -- code 65 is given when trying to format an ambiguous misspelling
}