From 5713a61c93c832dcd34f43bb328ec1cbf3dd697f Mon Sep 17 00:00:00 2001 From: ManuelBlanc Date: Fri, 26 Oct 2018 01:43:52 +0200 Subject: [PATCH 1/3] [Luacheck] Add VT2 globals --- .luacheckrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index a568fc8..fef2922 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -13,7 +13,7 @@ ignore = { "611", -- disable "line contains only whitespace" } -std = "+VT1+VMF" +std = "+VT1+VT2+VMF" stds["VMF"] = { globals = { @@ -412,4 +412,10 @@ stds["VT1"] = { "UICalibrationView", "profiler_scopes_trace", "flow_callback_overcharge_reset_unit", "RandomTable_05_05", "POOL_blackboard", "PlayGoTutorialSystem", } -} \ No newline at end of file +} + +stds["VT2"] = { + globals = { + "IngameViewLayoutLogic", "HeroWindowIngameView", + }, +} From 99aed87ba6443286bcc3398e640220816a90fcf6 Mon Sep 17 00:00:00 2001 From: ManuelBlanc Date: Fri, 26 Oct 2018 01:52:43 +0200 Subject: [PATCH 2/3] [Luacheck] Set VT globals as read-only This has no effect as the related warnings (121 and 122) are disabled. --- .luacheckrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index fef2922..710b6e2 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -22,7 +22,7 @@ stds["VMF"] = { } stds["VT1"] = { - globals = { + read_globals = { string = { fields = { "split" }}, debug = { fields = { "load_level", "level_loaded", "spawn_hero", "animation_log_specific_profile", "upvaluejoin", "upvalueid" @@ -415,7 +415,7 @@ stds["VT1"] = { } stds["VT2"] = { - globals = { + read_globals = { "IngameViewLayoutLogic", "HeroWindowIngameView", }, } From 660d54bb6bb90e9d595b7649dc78637a632a8cd7 Mon Sep 17 00:00:00 2001 From: ManuelBlanc Date: Fri, 26 Oct 2018 01:54:07 +0200 Subject: [PATCH 3/3] [Luacheck] Add missing trailing commas --- .luacheckrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 710b6e2..b21b60b 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -17,15 +17,15 @@ std = "+VT1+VT2+VMF" stds["VMF"] = { globals = { - "new_mod", "get_mod", "VMFMod", "VMFModsKeyMap", "VMFOptionsView", "VT1" - } + "new_mod", "get_mod", "VMFMod", "VMFModsKeyMap", "VMFOptionsView", "VT1", + }, } stds["VT1"] = { read_globals = { string = { fields = { "split" }}, 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 = { "merge", "table_to_array", "mirror_table", "tostring", "is_empty", "array_to_table", "reverse", "shuffle", @@ -411,7 +411,7 @@ stds["VT1"] = { "TelemetryEvents", "debug_bot_transitions", "FreeFlightControllerSettings","ApexClothQuality", "UICalibrationView", "profiler_scopes_trace", "flow_callback_overcharge_reset_unit", "RandomTable_05_05", "POOL_blackboard", "PlayGoTutorialSystem", - } + }, } stds["VT2"] = {