aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/rubocop.lua
blob: c8e027c3721ebf5832e114c0a34a4a596474fe07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---@type conform.FileFormatterConfig
return {
  meta = {
    url = "https://github.com/rubocop/rubocop",
    description = "Ruby static code analyzer and formatter, based on the community Ruby style guide.",
  },
  command = "rubocop",
  args = {
    "--server",
    "-a",
    "-f",
    "quiet",
    "--stderr",
    "--stdin",
    "$FILENAME",
  },
  exit_codes = { 0, 1 },
}