Skip to content

Commit

Permalink
chore: .luacheckrc file initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
da-moon committed Feb 5, 2022
1 parent 358c8e0 commit aba6fe6
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
-- vim: ft=lua syntax=lua softtabstop=3 tabstop=3 shiftwidth=3 fenc=utf-8 expandtab
-- code: language=lua insertSpaces=true tabSize=3

-- codes = true
-- globals = {"_","vim"}
stds.nvim = {
globals = {
"rvim",
"packer_plugins",
vim = { fields = { "g" } },
"TERMINAL",
"USER",
"C",
"Config",
"Api",
"Cmd",
"Fn",
"Keymap",
"Execute",
"G",
"_GlobalCallbacks",
"WhichKey",
"MUtils",
"fterm_cmd",
os = { fields = { "capture" } },
},
read_globals = {
"bit",
"jit",
"os",
"vim",
"packer_plugins",
"join_paths",
"get_runtime_dir",
"get_config_dir",
"get_cache_dir",
"get_user_dir",
"use",
"unpack",
vim = { fields = { "cmd", "api", "fn", "o", "wo", "bo" } },
},
}
std = "lua52+nvim"

-- Don't report unused self arguments of methods.
self = false

-- Rerun tests only if their modification time changed.
cache = true

-- https://luacheck.readthedocs.io/en/stable/warnings.html
-- "631", -- max_line_length
ignore = {
"212/_.*", -- unused argument, for vars with "_" prefix
"111/_.*", -- unused argument, for functions with "_" prefix
"631/.*vim.*",
}
exclude_files = {
"plugin/packer_compiled.lua",
"tmp/*",
}

0 comments on commit aba6fe6

Please sign in to comment.