summaryrefslogtreecommitdiff
path: root/.luacheckrc
blob: 1602e624e91362a7e141f7dbd1cc61c92c0bdbc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-- Rerun tests only if their modification time changed.
cache = true

std = luajit
codes = true

self = false

-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html
ignore = {
  "212", -- Unused argument, In the case of callback function, _arg_name is easier to understand than _, so this option is set to off.
  "122", -- Indirectly setting a readonly global
}

globals = {
  "_",
  "TelescopeGlobalState",
  "_TelescopeConfigurationValues",
  "_TelescopeConfigurationPickers",
  "__TelescopeKeymapStore",
}

-- Global objects defined by the C code
read_globals = {
  "vim",
}

files = {
  ["lua/telescope/builtin/init.lua"] = {
    ignore = {
      "631", -- allow line len > 120
    }
  },
}