| 1 |
-- Only allow symbols available in all Lua versions |
| 2 |
std = "min" |
| 3 |
|
| 4 |
-- Get rid of "unused argument self"-warnings |
| 5 |
self = false |
| 6 |
|
| 7 |
-- The unit tests can use busted |
| 8 |
files["spec"].std = "+busted" |
| 9 |
|
| 10 |
-- The default config may set global variables |
| 11 |
files["awesomerc.lua"].allow_defined_top = true |
| 12 |
|
| 13 |
-- This file itself |
| 14 |
files[".luacheckrc"].ignore = {"111", "112", "131"} |
| 15 |
|
| 16 |
-- Theme files, ignore max line length |
| 17 |
files["themes/*"].ignore = {"631"} |
| 18 |
|
| 19 |
-- Global objects defined by the C code |
| 20 |
read_globals = { |
| 21 |
"awesome", |
| 22 |
"button", |
| 23 |
"dbus", |
| 24 |
"drawable", |
| 25 |
"drawin", |
| 26 |
"key", |
| 27 |
"keygrabber", |
| 28 |
"mousegrabber", |
| 29 |
"root", |
| 30 |
"selection", |
| 31 |
"tag", |
| 32 |
"window", |
| 33 |
"table.unpack", |
| 34 |
"math.atan2", |
| 35 |
} |
| 36 |
|
| 37 |
-- screen may not be read-only, because newer luacheck versions complain about |
| 38 |
-- screen[1].tags[1].selected = true. |
| 39 |
-- The same happens with the following code: |
| 40 |
-- local tags = mouse.screen.tags |
| 41 |
-- tags[7].index = 4 |
| 42 |
-- client may not be read-only due to client.focus. |
| 43 |
globals = { |
| 44 |
"screen", |
| 45 |
"mouse", |
| 46 |
"client" |
| 47 |
} |
| 48 |
|
| 49 |
-- Enable cache (uses .luacheckcache relative to this rc file). |
| 50 |
cache = true |
| 51 |
|
| 52 |
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 |