This repository has been archived by the owner on Mar 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacheckrc
89 lines (82 loc) · 1.89 KB
/
.luacheckrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
include_files = {'**/*.lua.txt', '**/*.lua'}
exclude_files = {'Assets/ThirdLib/', 'Assets/Generated/', '**/luaunit.lua'}
codes = true
local rewritable = {read_only = false, other_fields = true}
stds.my_lib = {
read_globals = {
CS = {
other_fields = true,
fields = {
UnityEngine = {
other_fields = true,
--reimplemented unity struct in pure lua.
fields = {
Bounds = rewritable,
Color = rewritable,
LayerMask = rewritable,
Mathf = rewritable,
Plane = rewritable,
Quaternion = rewritable,
Ray = rewritable,
RaycastHit = rewritable,
Time = rewritable,
AudioListener = rewritable,
TouchPhase = rewritable,
Touch = rewritable,
Vector2 = rewritable,
Vector3 = rewritable,
Vector4 = rewritable,
EditorApplication = rewritable,
Application = rewritable
}
},
-- CS.Pap namespace.
Pap = {other_fields = true},
-- Dotween
DG = rewritable,
--fingers plugin.
DigitalRubyShared = {other_fields = true},
GraphQL = {other_fields = true},
--promise
RSG = {other_fields = true},
UniWebView = {other_fields = true},
SafeAreaUtility = {other_fields = true}
},
}
},
globals = {
'__G__ERROR_TRACE',
}
}
--lua51c+lua52c+lua53c+luajit
std = 'max+my_lib'
read_globals = {
--xlua global.
'typeof',
'uint64',
'cast',
'xlua',
--other
}
new_globals = {
--extend lua libraries
'coroutine',
'math',
'table',
'string',
'print',
'handler',
'import',
'reimport',
'class',
'io.stdout',
'os.exit'
}
ignore = {
--allow only space line.
'611',
--unused argument, like self.
'212',
}
--max_line_length = 140
--max_comment_line_length = 160