This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(luacheckrc): some internal rules improvements
- Loading branch information
1 parent
bde7c4a
commit d34e104
Showing
1 changed file
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
stds.nvim = { | ||
read_globals = { "vim", "jit" }, | ||
globals = { | ||
vim = { fields = { "g" } }, | ||
table = { fields = { "unpack" } }, | ||
package = { fields = { "searchers" } }, | ||
}, | ||
read_globals = { | ||
"vim", | ||
"jit", | ||
"packer_plugins", | ||
}, | ||
} | ||
std = "lua51+nvim" | ||
|
||
-- Rerun tests only if their modification time changed. | ||
cache = true | ||
|
||
-- NOTE: rules from 100...400 are specific for Neovim stuff, e.g. vim.opt | ||
-- NOTE: rules from 200...400 are specific for Neovim stuff, e.g. vim.opt | ||
ignore = { | ||
"113", -- Accessing an undefined global variable. | ||
"121", -- Setting a read-only global variable. | ||
"122/vim", -- Setting a read-only field of a global variable. | ||
"143", -- Accessing an undefined field of a global variable. | ||
"212/_.*", -- Unused argument, for variables with "_" prefix. | ||
"331", -- Value assigned to a local variable is mutated but never accessed. | ||
"631", -- Line is too long. | ||
"212/_.*", -- Unused argument, for variables with "_" prefix. | ||
"331", -- Value assigned to a local variable is mutated but never accessed. | ||
"631", -- Line is too long. | ||
} | ||
|
||
exclude_files = { | ||
"plugin/packer_compiled.lua" | ||
"plugin/packer_compiled.lua", | ||
} | ||
|
||
-- vim: ft=lua | ||
-- vim: ft=lua sw=2 ts=2 |