add(tooling) .luacheckrc

This commit is contained in:
Aire-One 2021-10-16 18:11:53 +02:00
parent 776868b430
commit 3ad2403a2a
1 changed files with 33 additions and 0 deletions

33
.luacheckrc Normal file
View File

@ -0,0 +1,33 @@
-- Only allow symbols available in all Lua versions
std = "min"
files[".luacheckrc"].ignore = { "111", "112", "131" }
-- Global objects defined by the C code
read_globals = {
"awesome",
"button",
"dbus",
"drawable",
"drawin",
"key",
"keygrabber",
"mousegrabber",
"selection",
"tag",
"window",
"table.unpack",
"math.atan2",
}
globals = {
"screen",
"mouse",
"root",
"client",
}
-- Enable cache (uses .luacheckcache relative to this rc file).
cache = true
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80