diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-23 14:54:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-23 14:54:04 +0800 |
commit | 1dda93bba596496c1a427707fe97d92391129b8d (patch) | |
tree | 8bb525452d5677133a17662d091a077db5af1cad /server-beta/src/define/DiagnosticDefaultSeverity.lua | |
parent | 62a3e74b5467ca3bc0879e73e8fc8b129c0bec6a (diff) | |
download | lua-language-server-1dda93bba596496c1a427707fe97d92391129b8d.zip |
整理文件
Diffstat (limited to 'server-beta/src/define/DiagnosticDefaultSeverity.lua')
-rw-r--r-- | server-beta/src/define/DiagnosticDefaultSeverity.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/server-beta/src/define/DiagnosticDefaultSeverity.lua b/server-beta/src/define/DiagnosticDefaultSeverity.lua new file mode 100644 index 00000000..cc26cab2 --- /dev/null +++ b/server-beta/src/define/DiagnosticDefaultSeverity.lua @@ -0,0 +1,21 @@ +return { + ['unused-local'] = 'Hint', + ['unused-function'] = 'Hint', + ['undefined-global'] = 'Warning', + ['global-in-nil-env'] = 'Warning', + ['unused-label'] = 'Hint', + ['unused-vararg'] = 'Hint', + ['trailing-space'] = 'Hint', + ['redefined-local'] = 'Hint', + ['newline-call'] = 'Information', + ['redundant-parameter'] = 'Hint', + ['ambiguity-1'] = 'Warning', + ['lowercase-global'] = 'Information', + ['undefined-env-child'] = 'Information', + ['duplicate-index'] = 'Warning', + ['duplicate-method'] = 'Warning', + ['empty-block'] = 'Hint', + ['redundant-value'] = 'Hint', + ['emmy-lua'] = 'Warning', + ['set-const'] = 'Error', +} |