1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| std = 'luajit'
|
| new_read_globals = {
| 'assert',
| 'describe',
| 'it',
| }
| new_globals = {
| 'math',
| }
|
| -- Luacheck < 0.18 doesn't support new_read_globals
| for _, v in ipairs(new_read_globals) do
| table.insert(new_globals, v)
| end
|
| -- Ignore some pedantic checks
| ignore = {
| '4.1/err', -- Shadowing err
| '4.1/.', -- Shadowing one letter variables
| }
|
|