diff options
author | Cr4xy <Cr4xy@Live.de> | 2021-10-25 14:08:32 +0200 |
---|---|---|
committer | Cr4xy <Cr4xy@Live.de> | 2021-10-25 14:08:32 +0200 |
commit | 751e5b623184005532eac6fa12f9b1094030a613 (patch) | |
tree | 8c41aebd91135971855c8a48248ee14ef0758c58 /script/proto/define.lua | |
parent | 8ced2703cc4598fe880cf27f2f82a90e947b532f (diff) | |
download | lua-language-server-751e5b623184005532eac6fa12f9b1094030a613.zip |
add redundant-return diagnostic
Diffstat (limited to 'script/proto/define.lua')
-rw-r--r-- | script/proto/define.lua | 2 |
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', |