summaryrefslogtreecommitdiff
path: root/script/src/constant/DiagnosticDefaultSeverity.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/src/constant/DiagnosticDefaultSeverity.lua')
-rw-r--r--script/src/constant/DiagnosticDefaultSeverity.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/script/src/constant/DiagnosticDefaultSeverity.lua b/script/src/constant/DiagnosticDefaultSeverity.lua
new file mode 100644
index 00000000..b7f07f63
--- /dev/null
+++ b/script/src/constant/DiagnosticDefaultSeverity.lua
@@ -0,0 +1,22 @@
+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',
+ ['newfield-call'] = 'Warning',
+ ['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',
+}