-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
772 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
-- Only allow symbols available in all Lua versions | ||
std = "min" | ||
|
||
-- Get rid of "unused argument self"-warnings | ||
self = false | ||
|
||
-- The default config may set global variables | ||
-- files["init.lua"].allow_defined_top = true | ||
|
||
-- This file itself | ||
files[".luacheckrc"].ignore = {"111", "112", "131"} | ||
|
||
-- Global objects defined by the C code | ||
read_globals = { | ||
"awesome", | ||
"button", | ||
"client", | ||
"dbus", | ||
"drawable", | ||
"drawin", | ||
"key", | ||
"keygrabber", | ||
"mousegrabber", | ||
"root", | ||
"selection", | ||
"tag", | ||
"window", | ||
-- Global settings. | ||
"modkey", | ||
} | ||
|
||
-- screen may not be read-only, because newer luacheck versions complain about | ||
-- screen[1].tags[1].selected = true. | ||
-- The same happens with the following code: | ||
-- local tags = mouse.screen.tags | ||
-- tags[7].index = 4 | ||
-- client may not be read-only due to client.focus. | ||
globals = { | ||
"screen", | ||
"mouse", | ||
"client" | ||
} | ||
|
||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Based on https://github.com/mpeterv/hererocks | ||
|
||
language: python | ||
sudo: false | ||
|
||
env: | ||
- LUA="lua 5.3" | ||
|
||
install: | ||
- pip install hererocks | ||
- hererocks env --$LUA -rlatest | ||
- source env/bin/activate | ||
- luarocks install luacheck | ||
|
||
script: | ||
- luacheck *.lua | ||
|
||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.