diff options
author | AndreaWalchshoferSCCH <122894794+AndreaWalchshoferSCCH@users.noreply.github.com> | 2023-04-04 11:02:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 11:02:59 +0200 |
commit | 27cfa2e23648b015a94fab6e0938ec42a5a040e5 (patch) | |
tree | e247b1aac92882c72e5c694eb8090f883d43c76c /locale/en-us/script.lua | |
parent | f85e039b9e9369fc2936e899c81056837f04403e (diff) | |
download | lua-language-server-27cfa2e23648b015a94fab6e0938ec42a5a040e5.zip |
Add diagnostic to enforce lowercase local element names (#6)
- diagnostic `uppercase-local` in group `conventions`, disabled by
default
- isolated unit tests for diagnostic
Diffstat (limited to 'locale/en-us/script.lua')
-rw-r--r-- | locale/en-us/script.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index 2a13214f..e7f4b98b 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -150,8 +150,11 @@ DIAG_INVISIBLE_PROTECTED = 'Field `{field}` is protected, it can only be accessed in class `{class}` and its subclasses.' DIAG_INVISIBLE_PACKAGE = 'Field `{field}` can only be accessed in same file `{uri}`.' -DIAG_GLOBAL_ELEMENT = +DIAG_GLOBAL_ELEMENT = 'Element is global.' +DIAG_UPPERCASE_LOCAL = +'Local element `{}` must start with lowercase letter' + MWS_NOT_SUPPORT = '{} does not support multi workspace for now, I may need to restart to support the new workspace ...' |