forked from Andreas-Kreuz/ak-lua-bibliothek-fuer-eep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.luacheckrc
106 lines (103 loc) · 3.1 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
read_globals = {
"AkDebugLoad",
"EEPChangeInfoStructure",
"EEPGetCameraPosition",
"EEPGetCameraRotation",
"EEPGetCloudIntensity ",
"EEPGetFogIntensity",
"EEPGetHailIntensity",
"EEPGetRainIntensity",
"EEPGetRollingstockItemName",
"EEPGetRollingstockItemsCount",
"EEPGetSignal",
"EEPGetSignalTrainName",
"EEPGetSignalTrainsCount",
"EEPGetSnowIntensity",
"EEPGetSwitch",
"EEPGetTrainActive",
"EEPGetTrainLength",
"EEPGetTrainRoute",
"EEPGetTrainSpeed",
"EEPGetWindIntensity",
"EEPGoodsGetRotation",
"EEPIsAuxiliaryTrackReserved",
"EEPIsControlTrackReserved",
"EEPIsRailTrackReserved",
"EEPIsRoadTrackReserved",
"EEPIsTramTrackReserved",
"EEPLoadData",
"EEPOnTrainCoupling",
"EEPOnTrainExitTrainyard",
"EEPOnTrainLooseCoupling",
"EEPPause",
"EEPRegisterAuxiliaryTrack",
"EEPRegisterControlTrack",
"EEPRegisterRailTrack",
"EEPRegisterRoadTrack",
"EEPRegisterTramTrack",
"EEPRollingstockGetActive",
"EEPRollingstockGetCouplingFront",
"EEPRollingstockGetCouplingRear",
"EEPRollingstockGetHook",
"EEPRollingstockGetHookGlue",
"EEPRollingstockGetLength",
"EEPRollingstockGetModelType",
"EEPRollingstockGetMotor",
"EEPRollingstockGetOrientation",
"EEPRollingstockGetTrainName",
"EEPRollingstockGetPosition",
"EEPRollingstockGetSmoke",
"EEPRollingstockGetTagText",
"EEPRollingstockGetTrack",
"EEPSaveData",
"EEPShowInfoStructure",
"EEPStructureGetAxis",
"EEPStructureGetFire",
"EEPStructureGetLight",
"EEPStructureGetRotation",
"EEPStructureGetSmoke",
"EEPStructureSetAxis",
"EEPTime",
"EEPTimeH",
"EEPTimeM",
"EEPTimeS",
"EEPVer",
"after_each",
"before_each",
"clearlog",
"describe",
"insulate",
"it",
"pending"
}
allow_defined_top = true
-- See https://luacheck.readthedocs.io/en/stable/warnings.html
-- 121 - global assignment to readonly
-- 131 - global assignment
-- 212 - unused argument
files["lua/LUA/ak/core/eep"].ignore = {"212", "131"}
files["lua/LUA/ak/demo-anlagen"].ignore = {"131"}
files["lua/LUA/ak/data/AkSlotNamesParser.lua"].ignore = {"212"}
files["lua/LUA/ak/road/Road.lua"].ignore = {"131"}
files["lua/LUA/ak/data/TrackCollector.lua"].ignore = {"121", "211"}
files["lua/LUA/ak/data/TrainDetection.lua"].ignore = {"121", "211"}
exclude_files = {
".vscode",
"assets",
"docs",
"lua/LUA/SlotNames_BH2.lua",
"lua/LUA/ak/anlagen/**",
"lua/LUA/ak/io/crc32lua.lua",
"lua/LUA/ak/io/dkjson.lua",
"lua/LUA/ak/io/json.lua",
"lua/LUA/ak/third-party/**",
"lua/Resourcen/Anlagen/Andreas_Kreuz-Demo-Ampel/Andreas_Kreuz-Demoanlage-Ampel-Grundmodelle.lua",
"lua/Resourcen/Anlagen/Andreas_Kreuz-Demo-Testen/Andreas_Kreuz-Lua-Testbeispiel.lua",
"lua/Resourcen/Anlagen/Andreas_Kreuz-Tutorial-Ampelkreuzung/Andreas_Kreuz-Tutorial-Ampelkreuzung.lua",
"lua/Resourcen/Anlagen/Andreas_Kreuz-Tutorial-Ampelkreuzung/Andreas_Kreuz-Tutorial-Ampelkreuzung-2.lua",
"lua/modell-pakete",
"scripts",
"web-app",
"web-server",
"web-shared"
}