diff options
Diffstat (limited to 'script/proto')
-rw-r--r-- | script/proto/define.lua | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua index 389cdf88..fb60c56c 100644 --- a/script/proto/define.lua +++ b/script/proto/define.lua @@ -9,10 +9,10 @@ m.DiagnosticSeverity = { } ---@alias DiagnosticDefaultSeverity ----| '"Hint"' ----| '"Information"' ----| '"Warning"' ----| '"Error"' +---| 'Hint' +---| 'Information' +---| 'Warning' +---| 'Error' --- 诊断类型与默认等级 ---@type table<string, DiagnosticDefaultSeverity> @@ -29,6 +29,7 @@ m.DiagnosticDefaultSeverity = { ['newline-call'] = 'Information', ['newfield-call'] = 'Warning', ['redundant-parameter'] = 'Warning', + ['missing-parameter'] = 'Warning', ['redundant-return'] = 'Warning', ['ambiguity-1'] = 'Warning', ['lowercase-global'] = 'Information', @@ -47,6 +48,7 @@ m.DiagnosticDefaultSeverity = { ['await-in-sync'] = 'Warning', ['not-yieldable'] = 'Warning', ['discard-returns'] = 'Warning', + ['need-check-nil'] = 'Warning', ['type-check'] = 'Warning', ['duplicate-doc-alias'] = 'Warning', @@ -63,9 +65,9 @@ m.DiagnosticDefaultSeverity = { } ---@alias DiagnosticDefaultNeededFileStatus ----| '"Any"' ----| '"Opened"' ----| '"None"' +---| 'Any' +---| 'Opened' +---| 'None' -- 文件状态 m.FileStatus = { @@ -88,6 +90,7 @@ m.DiagnosticDefaultNeededFileStatus = { ['newline-call'] = 'Any', ['newfield-call'] = 'Any', ['redundant-parameter'] = 'Opened', + ['missing-parameter'] = 'Opened', ['redundant-return'] = 'Opened', ['ambiguity-1'] = 'Any', ['lowercase-global'] = 'Any', @@ -106,6 +109,7 @@ m.DiagnosticDefaultNeededFileStatus = { ['await-in-sync'] = 'None', ['not-yieldable'] = 'None', ['discard-returns'] = 'Opened', + ['need-check-nil'] = 'Opened', ['type-check'] = 'None', ['duplicate-doc-alias'] = 'Any', |