]> git.lizzy.rs Git - dragonfireclient.git/blob - games/devtest/.luacheckrc
Fix broken FPS/dtime counters in debug info
[dragonfireclient.git] / games / devtest / .luacheckrc
1 unused_args = false
2 allow_defined_top = true
3 max_string_line_length = false
4 max_line_length = false
5
6 ignore = {
7         "131", -- Unused global variable
8         "211", -- Unused local variable
9         "231", -- Local variable never accessed
10         "311", -- Value assigned to a local variable is unused
11         "412", -- Redefining an argument
12         "421", -- Shadowing a local variable
13         "431", -- Shadowing an upvalue
14         "432", -- Shadowing an upvalue argument
15         "611", -- Line contains only whitespace
16 }
17
18 read_globals = {
19         "ItemStack",
20         "INIT",
21         "DIR_DELIM",
22         "dump", "dump2",
23         "fgettext", "fgettext_ne",
24         "vector",
25         "VoxelArea",
26         "profiler",
27         "Settings",
28         "check",
29         "PseudoRandom",
30
31         string = {fields = {"split", "trim"}},
32         table  = {fields = {"copy", "getn", "indexof", "insert_all"}},
33         math   = {fields = {"hypot", "round"}},
34 }
35
36 globals = {
37         "aborted",
38         "minetest",
39         "core",
40         os = { fields = { "tempfolder" } },
41         "_",
42 }
43