1-- luacheck configuration for strict linting
2std = "lua54"
3
4-- Enable all warnings
5max_line_length = 120
6max_code_line_length = 120
7max_string_line_length = false
8max_comment_line_length = false
9
10-- Strict unused variable checking
11unused = true
12unused_args = true
13unused_secondaries = true
14
15-- Ignore underscore-prefixed unused variables/functions (intentional stubs)
16ignore = {"21[123]/_.*"}
17
18-- Redefinition warnings
19redefined = true
20allow_defined = false
21allow_defined_top = false
22
23-- Global variable strictness
24globals = {}
25read_globals = {}
26new_globals = {}
27new_read_globals = {}
28
29-- Additional strict checks
30enable = {
31 "631", -- max_line_length
32 "611", -- whitespace on line consisting only of whitespace
33 "612", -- trailing whitespace in a string
34 "614", -- trailing whitespace in a comment
35 "621", -- inconsistent indentation
36 "631", -- line too long
37}