diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-17 10:58:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-17 10:58:44 +0800 |
commit | 23411c384b049f015d4f7d80409125894a9e2d96 (patch) | |
tree | 9e382cc9c422090921260f710442e79dac71d6ac /server/src/constant/DiagnosticDefaultSeverity.lua | |
parent | 1e712c3659d492c8a6c1eb8a92a0f042af7eb6e7 (diff) | |
download | lua-language-server-23411c384b049f015d4f7d80409125894a9e2d96.zip |
_ENV置为nil后的全局变量诊断
Diffstat (limited to 'server/src/constant/DiagnosticDefaultSeverity.lua')
-rw-r--r-- | server/src/constant/DiagnosticDefaultSeverity.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/constant/DiagnosticDefaultSeverity.lua b/server/src/constant/DiagnosticDefaultSeverity.lua index 3cd67528..cc26cab2 100644 --- a/server/src/constant/DiagnosticDefaultSeverity.lua +++ b/server/src/constant/DiagnosticDefaultSeverity.lua @@ -2,6 +2,7 @@ return { ['unused-local'] = 'Hint', ['unused-function'] = 'Hint', ['undefined-global'] = 'Warning', + ['global-in-nil-env'] = 'Warning', ['unused-label'] = 'Hint', ['unused-vararg'] = 'Hint', ['trailing-space'] = 'Hint', |