Fix luacheck; minor improvements (#27)

Fix luacheck; minor improvements
This commit is contained in:
Azumgi 2018-10-27 17:40:49 +03:00 committed by GitHub
commit 0ef1a94326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,19 +13,19 @@ ignore = {
"611", -- disable "line contains only whitespace" "611", -- disable "line contains only whitespace"
} }
std = "+VT1+VMF" std = "+VT1+VT2+VMF"
stds["VMF"] = { stds["VMF"] = {
globals = { globals = {
"new_mod", "get_mod", "VMFMod", "VMFModsKeyMap", "VMFOptionsView", "VT1" "new_mod", "get_mod", "VMFMod", "VMFModsKeyMap", "VMFOptionsView", "VT1",
} },
} }
stds["VT1"] = { stds["VT1"] = {
globals = { read_globals = {
string = { fields = { "split" }}, string = { fields = { "split" }},
debug = { fields = { debug = { fields = {
"load_level", "level_loaded", "spawn_hero", "animation_log_specific_profile", "upvaluejoin", "upvalueid" "load_level", "level_loaded", "spawn_hero", "animation_log_specific_profile", "upvaluejoin", "upvalueid",
}}, }},
table = { fields = { table = { fields = {
"merge", "table_to_array", "mirror_table", "tostring", "is_empty", "array_to_table", "reverse", "shuffle", "merge", "table_to_array", "mirror_table", "tostring", "is_empty", "array_to_table", "reverse", "shuffle",
@ -411,5 +411,11 @@ stds["VT1"] = {
"TelemetryEvents", "debug_bot_transitions", "FreeFlightControllerSettings","ApexClothQuality", "TelemetryEvents", "debug_bot_transitions", "FreeFlightControllerSettings","ApexClothQuality",
"UICalibrationView", "profiler_scopes_trace", "flow_callback_overcharge_reset_unit", "UICalibrationView", "profiler_scopes_trace", "flow_callback_overcharge_reset_unit",
"RandomTable_05_05", "POOL_blackboard", "PlayGoTutorialSystem", "RandomTable_05_05", "POOL_blackboard", "PlayGoTutorialSystem",
},
} }
stds["VT2"] = {
read_globals = {
"IngameViewLayoutLogic", "HeroWindowIngameView",
},
} }