Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
feat(luacheckrc): some internal rules improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Aug 5, 2021
1 parent bde7c4a commit d34e104
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .luacheckrc
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

0 comments on commit d34e104

Please sign in to comment.