From 27cfa2e23648b015a94fab6e0938ec42a5a040e5 Mon Sep 17 00:00:00 2001 From: AndreaWalchshoferSCCH <122894794+AndreaWalchshoferSCCH@users.noreply.github.com> Date: Tue, 4 Apr 2023 11:02:59 +0200 Subject: Add diagnostic to enforce lowercase local element names (#6) - diagnostic `uppercase-local` in group `conventions`, disabled by default - isolated unit tests for diagnostic --- locale/zh-tw/setting.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'locale/zh-tw/setting.lua') diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index fd363d3f..ebf615ac 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -414,8 +414,10 @@ config.diagnostics['unknown-operator'] = -- TODO: need translate! 'Enable diagnostics for unknown operators.' config.diagnostics['unreachable-code'] = -- TODO: need translate! 'Enable diagnostics for unreachable code.' -config.diagnostics['global-element'] = -- TODO: need translate! -'Enable diagnostics to warn about global elements.' +config.diagnostics['global-element'] = -- TODO: need translate! +'Enable diagnostics to warn about global variables.' +config.diagnostics['uppercase-local'] = -- TODO: need translate! +'Enable diagnostics to warn about local element names starting with an uppercase letter.' config.typeFormat.config = -- TODO: need translate! 'Configures the formatting behavior while typing Lua code.' config.typeFormat.config.auto_complete_end = -- TODO: need translate! -- cgit v1.2.3