summaryrefslogtreecommitdiff
path: root/.luacheckrc
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-07-17 17:41:04 +0430
committerGitHub <[email protected]>2021-07-17 09:11:04 -0400
commitdd5de4217d3fd1f082a68de3018bcf547bad67e6 (patch)
tree4735d5ab0f95e0d142c82b5c8d596fc62fcb7b99 /.luacheckrc
parentddb627d004d1f6c3bbd593a381ed93bbe54a24fd (diff)
configure luacheck to better undersant LV code (#998)
Diffstat (limited to '.luacheckrc')
-rw-r--r--.luacheckrc38
1 files changed, 38 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644
index 00000000..9b2e420b
--- /dev/null
+++ b/.luacheckrc
@@ -0,0 +1,38 @@
+-- vim: ft=lua tw=80
+
+stds.nvim = {
+ globals = {
+ "O",
+ vim = { fields = { "g" } },
+ "CONFIG_PATH",
+ "CACHE_PATH",
+ "DATA_PATH",
+ "TERMINAL",
+ "USER",
+ "C",
+ "Config",
+ "WORKSPACE_PATH",
+ "JAVA_LS_EXECUTABLE",
+ "MUtils",
+ os = {fields = {"capture"}}
+ },
+ read_globals = {
+ "jit",
+ "os",
+ "vim",
+ -- vim = { fields = { "cmd", "api", "fn", "o" } },
+ },
+}
+std = "lua51+nvim"
+
+
+-- Don't report unused self arguments of methods.
+self = false
+
+-- Rerun tests only if their modification time changed.
+cache = true
+
+ignore = {
+ "631", -- max_line_length
+ "212/_.*", -- unused argument, for vars with "_" prefix
+}