mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2025-12-06 06:46:10 +00:00
ci: Add luacheck ci job (#317)
* Add luacheck ci job * Fix most of the linting issues * fixup: lint Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
This commit is contained in:
26
.luacheckrc
Normal file
26
.luacheckrc
Normal file
@@ -0,0 +1,26 @@
|
||||
-- Rerun tests only if their modification time changed.
|
||||
cache = true
|
||||
|
||||
std = luajit
|
||||
codes = true
|
||||
|
||||
self = false
|
||||
|
||||
-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html
|
||||
ignore = {
|
||||
"212", -- Unused argument, In the case of callback function, _arg_name is easier to understand than _, so this option is set to off.
|
||||
"122", -- Indirectly setting a readonly global
|
||||
}
|
||||
|
||||
globals = {
|
||||
"TelescopeGlobalState",
|
||||
"TelescopeCachedUppers",
|
||||
"TelescopeCachedTails",
|
||||
"TelescopeCachedNgrams",
|
||||
"_TelescopeConfigurationValues",
|
||||
}
|
||||
|
||||
-- Global objects defined by the C code
|
||||
read_globals = {
|
||||
"vim",
|
||||
}
|
||||
Reference in New Issue
Block a user