소스 검색

configure luacheck to better undersant LV code (#998)

Abouzar Parvan 4 년 전
부모
커밋
dd5de4217d
1개의 변경된 파일38개의 추가작업 그리고 0개의 파일을 삭제
  1. 38 0
      .luacheckrc

+ 38 - 0
.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
+}