summaryrefslogtreecommitdiff
path: root/script/proto/define.lua
diff options
context:
space:
mode:
authorCr4xy <Cr4xy@Live.de>2021-10-25 14:08:32 +0200
committerCr4xy <Cr4xy@Live.de>2021-10-25 14:08:32 +0200
commit751e5b623184005532eac6fa12f9b1094030a613 (patch)
tree8c41aebd91135971855c8a48248ee14ef0758c58 /script/proto/define.lua
parent8ced2703cc4598fe880cf27f2f82a90e947b532f (diff)
downloadlua-language-server-751e5b623184005532eac6fa12f9b1094030a613.zip
add redundant-return diagnostic
Diffstat (limited to 'script/proto/define.lua')
-rw-r--r--script/proto/define.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua
index 63153423..713857af 100644
--- a/script/proto/define.lua
+++ b/script/proto/define.lua
@@ -29,6 +29,7 @@ m.DiagnosticDefaultSeverity = {
['newline-call'] = 'Information',
['newfield-call'] = 'Warning',
['redundant-parameter'] = 'Warning',
+ ['redundant-return'] = 'Warning',
['ambiguity-1'] = 'Warning',
['lowercase-global'] = 'Information',
['undefined-env-child'] = 'Information',
@@ -82,6 +83,7 @@ m.DiagnosticDefaultNeededFileStatus = {
['newline-call'] = 'Any',
['newfield-call'] = 'Any',
['redundant-parameter'] = 'Opened',
+ ['redundant-return'] = 'Opened',
['ambiguity-1'] = 'Any',
['lowercase-global'] = 'Any',
['undefined-env-child'] = 'Any',