Mirror of Awesome WM window manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.luacheckrc 1.2KB

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