diff --git a/README.md b/README.md index b8b1dce6ec683505dd7d942c609a51e300b4aa82..78be3e36d2a81ce44f4308393aaf903e717cfdb0 100644 --- a/README.md +++ b/README.md @@ -119,4 +119,4 @@ Software that the language server (or the development of it) uses: * [inspect.lua](https://github.com/kikito/inspect.lua) -[checkmark]: https://gist.githubusercontent.com/carsakiller/362482775731de88cdafeeca9f6a392e/raw/cd3976e92a85aafe1f33e3f9fe3d0e0bd451902c/checkmark.png +[checkmark]: https://user-images.githubusercontent.com/61925890/183228083-d3aa4eca-30c7-4b9f-aaab-26ce3d8a14fb.png diff --git a/changelog.md b/changelog.md index 18d8569a6f189e29eae97d1b89f56d94a2d57eb9..f02640b05ff94299cc7217a896228a723d727e25 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,18 @@ # changelog +## 3.5.3 +`2022-8-13` +* `FIX` [#1409](https://github.com/sumneko/lua-language-server/issues/1409) +* `FIX` [#1422](https://github.com/sumneko/lua-language-server/issues/1422) +* `FIX` [#1425](https://github.com/sumneko/lua-language-server/issues/1425) +* `FIX` [#1428](https://github.com/sumneko/lua-language-server/issues/1428) +* `FIX` [#1430](https://github.com/sumneko/lua-language-server/issues/1430) +* `FIX` [#1431](https://github.com/sumneko/lua-language-server/issues/1431) +* `FIX` [#1446](https://github.com/sumneko/lua-language-server/issues/1446) +* `FIX` [#1451](https://github.com/sumneko/lua-language-server/issues/1451) +* `FIX` [#1461](https://github.com/sumneko/lua-language-server/issues/1461) +* `FIX` [#1463](https://github.com/sumneko/lua-language-server/issues/1463) + ## 3.5.2 `2022-8-1` * `FIX` [#1395](https://github.com/sumneko/lua-language-server/issues/1395) diff --git a/package.json b/package.json index ec6b0ef18139588a4adffc60b2986cdd4c771624..b0407292949f4ed471501f6c6a1baaa3e4a8c8a3 100644 --- a/package.json +++ b/package.json @@ -124,6 +124,7 @@ "enum": [ "action-after-return", "ambiguity-1", + "ambiguous-syntax", "args-after-dots", "assign-type-mismatch", "await-in-sync", @@ -161,6 +162,30 @@ "keyword", "local-limit", "lowercase-global", + "lua-doc-miss-sign", + "luadoc-error-diag-mode", + "luadoc-miss-alias-extends", + "luadoc-miss-alias-name", + "luadoc-miss-arg-name", + "luadoc-miss-cate-name", + "luadoc-miss-class-extends-name", + "luadoc-miss-class-name", + "luadoc-miss-diag-mode", + "luadoc-miss-diag-name", + "luadoc-miss-field-extends", + "luadoc-miss-field-name", + "luadoc-miss-fun-after-overload", + "luadoc-miss-generic-name", + "luadoc-miss-local-name", + "luadoc-miss-module-name", + "luadoc-miss-operator-name", + "luadoc-miss-param-extends", + "luadoc-miss-param-name", + "luadoc-miss-sign-name", + "luadoc-miss-symbol", + "luadoc-miss-type-name", + "luadoc-miss-vararg-type", + "luadoc-miss-version", "malformed-number", "miss-end", "miss-esc-x", @@ -2747,6 +2772,15 @@ "title": "Lua", "type": "object" }, + "configurationDefaults": { + "[lua]": { + "editor.quickSuggestions": { + "comments": "inline", + "other": "on", + "strings": "on" + } + } + }, "jsonValidation": [ { "fileMatch": [ @@ -2881,16 +2915,7 @@ ] } } - ], - "configurationDefaults": { - "[lua]": { - "editor.quickSuggestions": { - "other": "on", - "comments": "inline", - "strings": "on" - } - } - } + ] }, "description": "Lua Language Server coded by Lua", "displayName": "Lua", @@ -2914,5 +2939,5 @@ "sponsor": { "url": "https://github.com/sumneko/lua-language-server/issues/484" }, - "version": "3.5.2" + "version": "3.5.3" } diff --git a/package.nls.json b/package.nls.json index 448642b03a6fcff24e98d0712fb8a039703d51aa..69070efe2f37e9c110ad5308de84eb1855e005eb 100644 --- a/package.nls.json +++ b/package.nls.json @@ -36,7 +36,7 @@ "config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", "config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", "config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.", - "config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.", + "config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.", "config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.", "config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.", "config.diagnostics.codestyle": "* codestyle-check\n* spell-check", diff --git a/package.nls.pt-br.json b/package.nls.pt-br.json index 3551d62138d7692ba7ec223a97b224f26f77e43e..716e7adf61d497b14229ecd4661cfac37b738a7a 100644 --- a/package.nls.pt-br.json +++ b/package.nls.pt-br.json @@ -31,12 +31,29 @@ "config.develop.enable": "Developer mode. Do not enable, performance will be affected.", "config.diagnostics.ambiguity": "* ambiguity-1\n* count-down-loop\n* different-requires\n* newfield-call\n* newline-call", "config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ", + "config.diagnostics.assign-type-mismatch": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "config.diagnostics.await": "* await-in-sync\n* not-yieldable", + "config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", + "config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", + "config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.", + "config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.", + "config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.", + "config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.", "config.diagnostics.codestyle": "* codestyle-check\n* spell-check", + "config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.", + "config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", + "config.diagnostics.deprecated": "Enable diagnostics to highlight deprecated API.", + "config.diagnostics.different-requires": "Enable diagnostics for files which are required by two different paths.", "config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).", "config.diagnostics.disableScheme": "Do not diagnose Lua files that use the following scheme.", + "config.diagnostics.discard-returns": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", + "config.diagnostics.doc-field-no-class": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "config.diagnostics.duplicate": "* duplicate-index\n* duplicate-set-field", + "config.diagnostics.duplicate-doc-alias": "Enable diagnostics for a duplicated alias annotation name.", + "config.diagnostics.duplicate-doc-field": "Enable diagnostics for a duplicated field annotation name.", + "config.diagnostics.duplicate-doc-param": "Enable diagnostics for a duplicated param annotation name.", "config.diagnostics.duplicate-index": "在字面量表中重复定义了索引", + "config.diagnostics.duplicate-set-field": "Enable diagnostics for setting the same field in a class more than once.", "config.diagnostics.empty-block": "空代码块", "config.diagnostics.enable": "Enable diagnostics.", "config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global", @@ -54,21 +71,41 @@ "config.diagnostics.libraryFiles.Opened": "Only when these files are opened will it be diagnosed.", "config.diagnostics.lowercase-global": "首字母小写的全局变量定义", "config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator", + "config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", + "config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.", + "config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.", + "config.diagnostics.need-check-nil": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* None: disable this diagnostic\n\nEnd with `!` means override the group setting `diagnostics.groupFileStatus`.\n", "config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作", "config.diagnostics.newline-call": "以 `(` 开始的新行,在语法上被解析为了上一行的函数调用", + "config.diagnostics.no-unknown": "Enable diagnostics for cases in which the type cannot be inferred.", + "config.diagnostics.not-yieldable": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", + "config.diagnostics.param-type-mismatch": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "config.diagnostics.redefined": "* redefined-local", "config.diagnostics.redefined-local": "重复定义的局部变量", "config.diagnostics.redundant-parameter": "函数调用时,传入了多余的参数", + "config.diagnostics.redundant-return": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", + "config.diagnostics.redundant-return-value": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "config.diagnostics.redundant-value": "赋值操作时,值的数量比被赋值的对象多", + "config.diagnostics.return-type-mismatch": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "config.diagnostics.severity": "Modify the diagnostic severity.\n\nEnd with `!` means override the group setting `diagnostics.groupSeverity`.\n", + "config.diagnostics.spell-check": "Enable diagnostics for typos in strings.", "config.diagnostics.strict": "* close-non-object\n* deprecated\n* discard-returns", "config.diagnostics.strong": "* no-unknown", "config.diagnostics.trailing-space": "后置空格", "config.diagnostics.type-check": "* assign-type-mismatch\n* cast-local-type\n* cast-type-mismatch\n* need-check-nil\n* param-type-mismatch\n* return-type-mismatch\n* undefined-field", "config.diagnostics.unbalanced": "* missing-parameter\n* missing-return\n* missing-return-value\n* redundant-parameter\n* redundant-return-value\n* redundant-value\n* unbalanced-assignments", + "config.diagnostics.unbalanced-assignments": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", + "config.diagnostics.undefined-doc-class": "Enable diagnostics for class annotations in which an undefined class is referenced.", + "config.diagnostics.undefined-doc-name": "Enable diagnostics for type annotations referencing an undefined type or alias.", + "config.diagnostics.undefined-doc-param": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "config.diagnostics.undefined-env-child": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中", + "config.diagnostics.undefined-field": "Enable diagnostics for cases in which an undefined field of a variable is read.", "config.diagnostics.undefined-global": "未定义的全局变量", + "config.diagnostics.unknown-cast-variable": "Enable diagnostics for casts of undefined variables.", + "config.diagnostics.unknown-diag-code": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", + "config.diagnostics.unknown-operator": "Enable diagnostics for unknown operators.", + "config.diagnostics.unreachable-code": "Enable diagnostics for unreachable code.", "config.diagnostics.unused": "* code-after-break\n* empty-block\n* redundant-return\n* trailing-space\n* unreachable-code\n* unused-function\n* unused-label\n* unused-local\n* unused-vararg", "config.diagnostics.unused-function": "未使用的函数", "config.diagnostics.unused-label": "未使用的标签", diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 2142ae3f8f99e52f8c5c09a173155ed411534c78..94e532e20587dee7bc6b0fd704cf0312ef78f416 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -31,12 +31,29 @@ "config.develop.enable": "开发者模式。请勿开启,会影响性能。", "config.diagnostics.ambiguity": "* ambiguity-1\n* count-down-loop\n* different-requires\n* newfield-call\n* newline-call", "config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ", + "config.diagnostics.assign-type-mismatch": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "config.diagnostics.await": "* await-in-sync\n* not-yieldable", + "config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", + "config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", + "config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.", + "config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.", + "config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.", + "config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.", "config.diagnostics.codestyle": "* codestyle-check\n* spell-check", + "config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.", + "config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", + "config.diagnostics.deprecated": "Enable diagnostics to highlight deprecated API.", + "config.diagnostics.different-requires": "Enable diagnostics for files which are required by two different paths.", "config.diagnostics.disable": "禁用的诊断(使用浮框括号内的代码)。", "config.diagnostics.disableScheme": "不诊断使用以下 scheme 的lua文件。", + "config.diagnostics.discard-returns": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", + "config.diagnostics.doc-field-no-class": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "config.diagnostics.duplicate": "* duplicate-index\n* duplicate-set-field", + "config.diagnostics.duplicate-doc-alias": "Enable diagnostics for a duplicated alias annotation name.", + "config.diagnostics.duplicate-doc-field": "Enable diagnostics for a duplicated field annotation name.", + "config.diagnostics.duplicate-doc-param": "Enable diagnostics for a duplicated param annotation name.", "config.diagnostics.duplicate-index": "在字面量表中重复定义了索引", + "config.diagnostics.duplicate-set-field": "Enable diagnostics for setting the same field in a class more than once.", "config.diagnostics.empty-block": "空代码块", "config.diagnostics.enable": "启用诊断。", "config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global", @@ -54,21 +71,41 @@ "config.diagnostics.libraryFiles.Opened": "只有打开这些文件时才会诊断。", "config.diagnostics.lowercase-global": "首字母小写的全局变量定义", "config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator", + "config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", + "config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.", + "config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.", + "config.diagnostics.need-check-nil": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "config.diagnostics.neededFileStatus": "* Opened: 只诊断打开的文件\n* Any: 诊断任何文件\n* None: 禁用此诊断\n\n以 `!` 结尾的设置优先级高于组设置 `diagnostics.groupFileStatus`。\n", "config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作", "config.diagnostics.newline-call": "以 `(` 开始的新行,在语法上被解析为了上一行的函数调用", + "config.diagnostics.no-unknown": "Enable diagnostics for cases in which the type cannot be inferred.", + "config.diagnostics.not-yieldable": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", + "config.diagnostics.param-type-mismatch": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "config.diagnostics.redefined": "* redefined-local", "config.diagnostics.redefined-local": "重复定义的局部变量", "config.diagnostics.redundant-parameter": "函数调用时,传入了多余的参数", + "config.diagnostics.redundant-return": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", + "config.diagnostics.redundant-return-value": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "config.diagnostics.redundant-value": "赋值操作时,值的数量比被赋值的对象多", + "config.diagnostics.return-type-mismatch": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "config.diagnostics.severity": "修改诊断等级。\n以 `!` 结尾的设置优先级高于组设置 `diagnostics.groupSeverity`。\n", + "config.diagnostics.spell-check": "Enable diagnostics for typos in strings.", "config.diagnostics.strict": "* close-non-object\n* deprecated\n* discard-returns", "config.diagnostics.strong": "* no-unknown", "config.diagnostics.trailing-space": "后置空格", "config.diagnostics.type-check": "* assign-type-mismatch\n* cast-local-type\n* cast-type-mismatch\n* need-check-nil\n* param-type-mismatch\n* return-type-mismatch\n* undefined-field", "config.diagnostics.unbalanced": "* missing-parameter\n* missing-return\n* missing-return-value\n* redundant-parameter\n* redundant-return-value\n* redundant-value\n* unbalanced-assignments", + "config.diagnostics.unbalanced-assignments": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", + "config.diagnostics.undefined-doc-class": "Enable diagnostics for class annotations in which an undefined class is referenced.", + "config.diagnostics.undefined-doc-name": "Enable diagnostics for type annotations referencing an undefined type or alias.", + "config.diagnostics.undefined-doc-param": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "config.diagnostics.undefined-env-child": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中", + "config.diagnostics.undefined-field": "Enable diagnostics for cases in which an undefined field of a variable is read.", "config.diagnostics.undefined-global": "未定义的全局变量", + "config.diagnostics.unknown-cast-variable": "Enable diagnostics for casts of undefined variables.", + "config.diagnostics.unknown-diag-code": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", + "config.diagnostics.unknown-operator": "Enable diagnostics for unknown operators.", + "config.diagnostics.unreachable-code": "Enable diagnostics for unreachable code.", "config.diagnostics.unused": "* code-after-break\n* empty-block\n* redundant-return\n* trailing-space\n* unreachable-code\n* unused-function\n* unused-label\n* unused-local\n* unused-vararg", "config.diagnostics.unused-function": "未使用的函数", "config.diagnostics.unused-label": "未使用的标签", diff --git a/package.nls.zh-tw.json b/package.nls.zh-tw.json index 33967586f16c45270024baa5122dae51fdb1ee3a..73c0982fb2a98697813eb138e3d9b0d4753b5d5b 100644 --- a/package.nls.zh-tw.json +++ b/package.nls.zh-tw.json @@ -31,12 +31,29 @@ "config.develop.enable": "開發者模式。請勿開啟,會影響效能。", "config.diagnostics.ambiguity": "* ambiguity-1\n* count-down-loop\n* different-requires\n* newfield-call\n* newline-call", "config.diagnostics.ambiguity-1": "優先順序歧義,如: `num or 0 + 1` ,推測使用者的實際期望為 `(num or 0) + 1`", + "config.diagnostics.assign-type-mismatch": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "config.diagnostics.await": "* await-in-sync\n* not-yieldable", + "config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", + "config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", + "config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.", + "config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.", + "config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.", + "config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.", "config.diagnostics.codestyle": "* codestyle-check\n* spell-check", + "config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.", + "config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", + "config.diagnostics.deprecated": "Enable diagnostics to highlight deprecated API.", + "config.diagnostics.different-requires": "Enable diagnostics for files which are required by two different paths.", "config.diagnostics.disable": "停用的診斷(使用浮框括號內的程式碼)。", "config.diagnostics.disableScheme": "不診斷使用以下 scheme 的lua檔案。", + "config.diagnostics.discard-returns": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", + "config.diagnostics.doc-field-no-class": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "config.diagnostics.duplicate": "* duplicate-index\n* duplicate-set-field", + "config.diagnostics.duplicate-doc-alias": "Enable diagnostics for a duplicated alias annotation name.", + "config.diagnostics.duplicate-doc-field": "Enable diagnostics for a duplicated field annotation name.", + "config.diagnostics.duplicate-doc-param": "Enable diagnostics for a duplicated param annotation name.", "config.diagnostics.duplicate-index": "在字面常數表中重複定義了索引", + "config.diagnostics.duplicate-set-field": "Enable diagnostics for setting the same field in a class more than once.", "config.diagnostics.empty-block": "空程式碼區塊", "config.diagnostics.enable": "啟用診斷。", "config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global", @@ -54,21 +71,41 @@ "config.diagnostics.libraryFiles.Opened": "只有打開這些檔案時才會診斷。", "config.diagnostics.lowercase-global": "首字母小寫的全域變數定義", "config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator", + "config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", + "config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.", + "config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.", + "config.diagnostics.need-check-nil": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "config.diagnostics.neededFileStatus": "* Opened: 只診斷打開的檔案\n* Any: 診斷所有檔案\n* None: 停用此診斷\n\n以 `!` 結尾的設定優先順序高於組設定 `diagnostics.groupFileStatus`。\n", "config.diagnostics.newfield-call": "在字面常數表中,2行程式碼之間缺少分隔符,在語法上被解析為了一次索引操作", "config.diagnostics.newline-call": "以 `(` 開始的新行,在語法上被解析為了上一行的函式呼叫", + "config.diagnostics.no-unknown": "Enable diagnostics for cases in which the type cannot be inferred.", + "config.diagnostics.not-yieldable": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", + "config.diagnostics.param-type-mismatch": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "config.diagnostics.redefined": "* redefined-local", "config.diagnostics.redefined-local": "重複定義的區域變數", "config.diagnostics.redundant-parameter": "函式呼叫時,傳入了多餘的引數", + "config.diagnostics.redundant-return": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", + "config.diagnostics.redundant-return-value": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "config.diagnostics.redundant-value": "賦值操作時,值的數量比被賦值的對象多", + "config.diagnostics.return-type-mismatch": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "config.diagnostics.severity": "修改診斷等級。\n以 `!` 結尾的設定優先順序高於組設定 `diagnostics.groupSeverity`。\n", + "config.diagnostics.spell-check": "Enable diagnostics for typos in strings.", "config.diagnostics.strict": "* close-non-object\n* deprecated\n* discard-returns", "config.diagnostics.strong": "* no-unknown", "config.diagnostics.trailing-space": "後置空格", "config.diagnostics.type-check": "* assign-type-mismatch\n* cast-local-type\n* cast-type-mismatch\n* need-check-nil\n* param-type-mismatch\n* return-type-mismatch\n* undefined-field", "config.diagnostics.unbalanced": "* missing-parameter\n* missing-return\n* missing-return-value\n* redundant-parameter\n* redundant-return-value\n* redundant-value\n* unbalanced-assignments", + "config.diagnostics.unbalanced-assignments": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", + "config.diagnostics.undefined-doc-class": "Enable diagnostics for class annotations in which an undefined class is referenced.", + "config.diagnostics.undefined-doc-name": "Enable diagnostics for type annotations referencing an undefined type or alias.", + "config.diagnostics.undefined-doc-param": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "config.diagnostics.undefined-env-child": "`_ENV` 被設定為了新的字面常數表,但是試圖獲取的全域變數不在這張表中", + "config.diagnostics.undefined-field": "Enable diagnostics for cases in which an undefined field of a variable is read.", "config.diagnostics.undefined-global": "未定義的全域變數", + "config.diagnostics.unknown-cast-variable": "Enable diagnostics for casts of undefined variables.", + "config.diagnostics.unknown-diag-code": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", + "config.diagnostics.unknown-operator": "Enable diagnostics for unknown operators.", + "config.diagnostics.unreachable-code": "Enable diagnostics for unreachable code.", "config.diagnostics.unused": "* code-after-break\n* empty-block\n* redundant-return\n* trailing-space\n* unreachable-code\n* unused-function\n* unused-label\n* unused-local\n* unused-vararg", "config.diagnostics.unused-function": "未使用的函式", "config.diagnostics.unused-label": "未使用的標籤", diff --git a/package/build.lua b/package/build.lua index 77eeea55f248ca325ffe7d33f159f9077e65d7ab..da0b32c70f6fa0ee7a0c5d63418fad5d2b6dbf24 100644 --- a/package/build.lua +++ b/package/build.lua @@ -1,6 +1,6 @@ local json = require 'json-beautify' -local VERSION = "3.5.2" +local VERSION = "3.5.3" local package = require 'package.package' local fsu = require 'fs-utility' diff --git a/server b/server index 0f0c1c517f9ba14dcb6f947166b980a93ccb69d3..dacf711d57cddbf106937abd64f544a9298f3349 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit 0f0c1c517f9ba14dcb6f947166b980a93ccb69d3 +Subproject commit dacf711d57cddbf106937abd64f544a9298f3349 diff --git a/setting/schema-pt-br.json b/setting/schema-pt-br.json index 9e6768207aa01eee0e11319b8e25eea4a8f888cf..345bbc30ff115ea88fa0cf2035a678723777d34f 100644 --- a/setting/schema-pt-br.json +++ b/setting/schema-pt-br.json @@ -174,6 +174,7 @@ "enum": [ "action-after-return", "ambiguity-1", + "ambiguous-syntax", "args-after-dots", "assign-type-mismatch", "await-in-sync", @@ -211,6 +212,30 @@ "keyword", "local-limit", "lowercase-global", + "lua-doc-miss-sign", + "luadoc-error-diag-mode", + "luadoc-miss-alias-extends", + "luadoc-miss-alias-name", + "luadoc-miss-arg-name", + "luadoc-miss-cate-name", + "luadoc-miss-class-extends-name", + "luadoc-miss-class-name", + "luadoc-miss-diag-mode", + "luadoc-miss-diag-name", + "luadoc-miss-field-extends", + "luadoc-miss-field-name", + "luadoc-miss-fun-after-overload", + "luadoc-miss-generic-name", + "luadoc-miss-local-name", + "luadoc-miss-module-name", + "luadoc-miss-operator-name", + "luadoc-miss-param-extends", + "luadoc-miss-param-name", + "luadoc-miss-sign-name", + "luadoc-miss-symbol", + "luadoc-miss-type-name", + "luadoc-miss-vararg-type", + "luadoc-miss-version", "malformed-number", "miss-end", "miss-esc-x", @@ -645,7 +670,7 @@ }, "assign-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.assign-type-mismatch%", + "description": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "enum": [ "Any", "Opened", @@ -658,7 +683,7 @@ }, "await-in-sync": { "default": "None", - "description": "%config.diagnostics.await-in-sync%", + "description": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", "enum": [ "Any", "Opened", @@ -671,7 +696,7 @@ }, "cast-local-type": { "default": "Opened", - "description": "%config.diagnostics.cast-local-type%", + "description": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", "enum": [ "Any", "Opened", @@ -684,7 +709,7 @@ }, "cast-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.cast-type-mismatch%", + "description": "Enable diagnostics for casts where the target type does not match the initial type.", "enum": [ "Any", "Opened", @@ -710,7 +735,7 @@ }, "close-non-object": { "default": "Any", - "description": "%config.diagnostics.close-non-object%", + "description": "Enable diagnostics for attempts to close a variable with a non-object.", "enum": [ "Any", "Opened", @@ -723,7 +748,7 @@ }, "code-after-break": { "default": "Opened", - "description": "%config.diagnostics.code-after-break%", + "description": "Enable diagnostics for code placed after a break statement in a loop.", "enum": [ "Any", "Opened", @@ -736,7 +761,7 @@ }, "codestyle-check": { "default": "None", - "description": "%config.diagnostics.codestyle-check%", + "description": "Enable diagnostics for incorrectly styled lines.", "enum": [ "Any", "Opened", @@ -749,7 +774,7 @@ }, "count-down-loop": { "default": "Any", - "description": "%config.diagnostics.count-down-loop%", + "description": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", "enum": [ "Any", "Opened", @@ -762,7 +787,7 @@ }, "deprecated": { "default": "Any", - "description": "%config.diagnostics.deprecated%", + "description": "Enable diagnostics to highlight deprecated API.", "enum": [ "Any", "Opened", @@ -775,7 +800,7 @@ }, "different-requires": { "default": "Any", - "description": "%config.diagnostics.different-requires%", + "description": "Enable diagnostics for files which are required by two different paths.", "enum": [ "Any", "Opened", @@ -788,7 +813,7 @@ }, "discard-returns": { "default": "Any", - "description": "%config.diagnostics.discard-returns%", + "description": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", "enum": [ "Any", "Opened", @@ -801,7 +826,7 @@ }, "doc-field-no-class": { "default": "Any", - "description": "%config.diagnostics.doc-field-no-class%", + "description": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "enum": [ "Any", "Opened", @@ -814,7 +839,7 @@ }, "duplicate-doc-alias": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-alias%", + "description": "Enable diagnostics for a duplicated alias annotation name.", "enum": [ "Any", "Opened", @@ -827,7 +852,7 @@ }, "duplicate-doc-field": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-field%", + "description": "Enable diagnostics for a duplicated field annotation name.", "enum": [ "Any", "Opened", @@ -840,7 +865,7 @@ }, "duplicate-doc-param": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-param%", + "description": "Enable diagnostics for a duplicated param annotation name.", "enum": [ "Any", "Opened", @@ -866,7 +891,7 @@ }, "duplicate-set-field": { "default": "Any", - "description": "%config.diagnostics.duplicate-set-field%", + "description": "Enable diagnostics for setting the same field in a class more than once.", "enum": [ "Any", "Opened", @@ -918,7 +943,7 @@ }, "missing-parameter": { "default": "Any", - "description": "%config.diagnostics.missing-parameter%", + "description": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", "enum": [ "Any", "Opened", @@ -931,7 +956,7 @@ }, "missing-return": { "default": "Any", - "description": "%config.diagnostics.missing-return%", + "description": "Enable diagnostics for functions with return annotations which have no return statement.", "enum": [ "Any", "Opened", @@ -944,7 +969,7 @@ }, "missing-return-value": { "default": "Any", - "description": "%config.diagnostics.missing-return-value%", + "description": "Enable diagnostics for return statements without values although the containing function declares returns.", "enum": [ "Any", "Opened", @@ -957,7 +982,7 @@ }, "need-check-nil": { "default": "Opened", - "description": "%config.diagnostics.need-check-nil%", + "description": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "enum": [ "Any", "Opened", @@ -996,7 +1021,7 @@ }, "no-unknown": { "default": "None", - "description": "%config.diagnostics.no-unknown%", + "description": "Enable diagnostics for cases in which the type cannot be inferred.", "enum": [ "Any", "Opened", @@ -1009,7 +1034,7 @@ }, "not-yieldable": { "default": "None", - "description": "%config.diagnostics.not-yieldable%", + "description": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", "enum": [ "Any", "Opened", @@ -1022,7 +1047,7 @@ }, "param-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.param-type-mismatch%", + "description": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "enum": [ "Any", "Opened", @@ -1061,7 +1086,7 @@ }, "redundant-return": { "default": "Opened", - "description": "%config.diagnostics.redundant-return%", + "description": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", "enum": [ "Any", "Opened", @@ -1074,7 +1099,7 @@ }, "redundant-return-value": { "default": "Any", - "description": "%config.diagnostics.redundant-return-value%", + "description": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "enum": [ "Any", "Opened", @@ -1100,7 +1125,7 @@ }, "return-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.return-type-mismatch%", + "description": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "enum": [ "Any", "Opened", @@ -1113,7 +1138,7 @@ }, "spell-check": { "default": "None", - "description": "%config.diagnostics.spell-check%", + "description": "Enable diagnostics for typos in strings.", "enum": [ "Any", "Opened", @@ -1139,7 +1164,7 @@ }, "unbalanced-assignments": { "default": "Any", - "description": "%config.diagnostics.unbalanced-assignments%", + "description": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", "enum": [ "Any", "Opened", @@ -1152,7 +1177,7 @@ }, "undefined-doc-class": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-class%", + "description": "Enable diagnostics for class annotations in which an undefined class is referenced.", "enum": [ "Any", "Opened", @@ -1165,7 +1190,7 @@ }, "undefined-doc-name": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-name%", + "description": "Enable diagnostics for type annotations referencing an undefined type or alias.", "enum": [ "Any", "Opened", @@ -1178,7 +1203,7 @@ }, "undefined-doc-param": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-param%", + "description": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "enum": [ "Any", "Opened", @@ -1204,7 +1229,7 @@ }, "undefined-field": { "default": "Opened", - "description": "%config.diagnostics.undefined-field%", + "description": "Enable diagnostics for cases in which an undefined field of a variable is read.", "enum": [ "Any", "Opened", @@ -1230,7 +1255,7 @@ }, "unknown-cast-variable": { "default": "Any", - "description": "%config.diagnostics.unknown-cast-variable%", + "description": "Enable diagnostics for casts of undefined variables.", "enum": [ "Any", "Opened", @@ -1243,7 +1268,7 @@ }, "unknown-diag-code": { "default": "Any", - "description": "%config.diagnostics.unknown-diag-code%", + "description": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", "enum": [ "Any", "Opened", @@ -1256,7 +1281,7 @@ }, "unknown-operator": { "default": "Any", - "description": "%config.diagnostics.unknown-operator%", + "description": "Enable diagnostics for unknown operators.", "enum": [ "Any", "Opened", @@ -1269,7 +1294,7 @@ }, "unreachable-code": { "default": "Opened", - "description": "%config.diagnostics.unreachable-code%", + "description": "Enable diagnostics for unreachable code.", "enum": [ "Any", "Opened", @@ -1358,7 +1383,7 @@ }, "assign-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.assign-type-mismatch%", + "description": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "enum": [ "Error", "Warning", @@ -1373,7 +1398,7 @@ }, "await-in-sync": { "default": "Warning", - "description": "%config.diagnostics.await-in-sync%", + "description": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", "enum": [ "Error", "Warning", @@ -1388,7 +1413,7 @@ }, "cast-local-type": { "default": "Warning", - "description": "%config.diagnostics.cast-local-type%", + "description": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", "enum": [ "Error", "Warning", @@ -1403,7 +1428,7 @@ }, "cast-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.cast-type-mismatch%", + "description": "Enable diagnostics for casts where the target type does not match the initial type.", "enum": [ "Error", "Warning", @@ -1433,7 +1458,7 @@ }, "close-non-object": { "default": "Warning", - "description": "%config.diagnostics.close-non-object%", + "description": "Enable diagnostics for attempts to close a variable with a non-object.", "enum": [ "Error", "Warning", @@ -1448,7 +1473,7 @@ }, "code-after-break": { "default": "Hint", - "description": "%config.diagnostics.code-after-break%", + "description": "Enable diagnostics for code placed after a break statement in a loop.", "enum": [ "Error", "Warning", @@ -1463,7 +1488,7 @@ }, "codestyle-check": { "default": "Warning", - "description": "%config.diagnostics.codestyle-check%", + "description": "Enable diagnostics for incorrectly styled lines.", "enum": [ "Error", "Warning", @@ -1478,7 +1503,7 @@ }, "count-down-loop": { "default": "Warning", - "description": "%config.diagnostics.count-down-loop%", + "description": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", "enum": [ "Error", "Warning", @@ -1493,7 +1518,7 @@ }, "deprecated": { "default": "Warning", - "description": "%config.diagnostics.deprecated%", + "description": "Enable diagnostics to highlight deprecated API.", "enum": [ "Error", "Warning", @@ -1508,7 +1533,7 @@ }, "different-requires": { "default": "Warning", - "description": "%config.diagnostics.different-requires%", + "description": "Enable diagnostics for files which are required by two different paths.", "enum": [ "Error", "Warning", @@ -1523,7 +1548,7 @@ }, "discard-returns": { "default": "Warning", - "description": "%config.diagnostics.discard-returns%", + "description": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", "enum": [ "Error", "Warning", @@ -1538,7 +1563,7 @@ }, "doc-field-no-class": { "default": "Warning", - "description": "%config.diagnostics.doc-field-no-class%", + "description": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "enum": [ "Error", "Warning", @@ -1553,7 +1578,7 @@ }, "duplicate-doc-alias": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-alias%", + "description": "Enable diagnostics for a duplicated alias annotation name.", "enum": [ "Error", "Warning", @@ -1568,7 +1593,7 @@ }, "duplicate-doc-field": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-field%", + "description": "Enable diagnostics for a duplicated field annotation name.", "enum": [ "Error", "Warning", @@ -1583,7 +1608,7 @@ }, "duplicate-doc-param": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-param%", + "description": "Enable diagnostics for a duplicated param annotation name.", "enum": [ "Error", "Warning", @@ -1613,7 +1638,7 @@ }, "duplicate-set-field": { "default": "Warning", - "description": "%config.diagnostics.duplicate-set-field%", + "description": "Enable diagnostics for setting the same field in a class more than once.", "enum": [ "Error", "Warning", @@ -1673,7 +1698,7 @@ }, "missing-parameter": { "default": "Warning", - "description": "%config.diagnostics.missing-parameter%", + "description": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", "enum": [ "Error", "Warning", @@ -1688,7 +1713,7 @@ }, "missing-return": { "default": "Warning", - "description": "%config.diagnostics.missing-return%", + "description": "Enable diagnostics for functions with return annotations which have no return statement.", "enum": [ "Error", "Warning", @@ -1703,7 +1728,7 @@ }, "missing-return-value": { "default": "Warning", - "description": "%config.diagnostics.missing-return-value%", + "description": "Enable diagnostics for return statements without values although the containing function declares returns.", "enum": [ "Error", "Warning", @@ -1718,7 +1743,7 @@ }, "need-check-nil": { "default": "Warning", - "description": "%config.diagnostics.need-check-nil%", + "description": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "enum": [ "Error", "Warning", @@ -1763,7 +1788,7 @@ }, "no-unknown": { "default": "Warning", - "description": "%config.diagnostics.no-unknown%", + "description": "Enable diagnostics for cases in which the type cannot be inferred.", "enum": [ "Error", "Warning", @@ -1778,7 +1803,7 @@ }, "not-yieldable": { "default": "Warning", - "description": "%config.diagnostics.not-yieldable%", + "description": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", "enum": [ "Error", "Warning", @@ -1793,7 +1818,7 @@ }, "param-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.param-type-mismatch%", + "description": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "enum": [ "Error", "Warning", @@ -1838,7 +1863,7 @@ }, "redundant-return": { "default": "Hint", - "description": "%config.diagnostics.redundant-return%", + "description": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", "enum": [ "Error", "Warning", @@ -1853,7 +1878,7 @@ }, "redundant-return-value": { "default": "Warning", - "description": "%config.diagnostics.redundant-return-value%", + "description": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "enum": [ "Error", "Warning", @@ -1883,7 +1908,7 @@ }, "return-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.return-type-mismatch%", + "description": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "enum": [ "Error", "Warning", @@ -1898,7 +1923,7 @@ }, "spell-check": { "default": "Information", - "description": "%config.diagnostics.spell-check%", + "description": "Enable diagnostics for typos in strings.", "enum": [ "Error", "Warning", @@ -1928,7 +1953,7 @@ }, "unbalanced-assignments": { "default": "Warning", - "description": "%config.diagnostics.unbalanced-assignments%", + "description": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", "enum": [ "Error", "Warning", @@ -1943,7 +1968,7 @@ }, "undefined-doc-class": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-class%", + "description": "Enable diagnostics for class annotations in which an undefined class is referenced.", "enum": [ "Error", "Warning", @@ -1958,7 +1983,7 @@ }, "undefined-doc-name": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-name%", + "description": "Enable diagnostics for type annotations referencing an undefined type or alias.", "enum": [ "Error", "Warning", @@ -1973,7 +1998,7 @@ }, "undefined-doc-param": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-param%", + "description": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "enum": [ "Error", "Warning", @@ -2003,7 +2028,7 @@ }, "undefined-field": { "default": "Warning", - "description": "%config.diagnostics.undefined-field%", + "description": "Enable diagnostics for cases in which an undefined field of a variable is read.", "enum": [ "Error", "Warning", @@ -2033,7 +2058,7 @@ }, "unknown-cast-variable": { "default": "Warning", - "description": "%config.diagnostics.unknown-cast-variable%", + "description": "Enable diagnostics for casts of undefined variables.", "enum": [ "Error", "Warning", @@ -2048,7 +2073,7 @@ }, "unknown-diag-code": { "default": "Warning", - "description": "%config.diagnostics.unknown-diag-code%", + "description": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", "enum": [ "Error", "Warning", @@ -2063,7 +2088,7 @@ }, "unknown-operator": { "default": "Warning", - "description": "%config.diagnostics.unknown-operator%", + "description": "Enable diagnostics for unknown operators.", "enum": [ "Error", "Warning", @@ -2078,7 +2103,7 @@ }, "unreachable-code": { "default": "Hint", - "description": "%config.diagnostics.unreachable-code%", + "description": "Enable diagnostics for unreachable code.", "enum": [ "Error", "Warning", diff --git a/setting/schema-zh-cn.json b/setting/schema-zh-cn.json index 85eda2bb849b94355c3b97a53cb85e60201dc6b8..b3cf7d9f8494e1b3b9089893b272152424afb791 100644 --- a/setting/schema-zh-cn.json +++ b/setting/schema-zh-cn.json @@ -174,6 +174,7 @@ "enum": [ "action-after-return", "ambiguity-1", + "ambiguous-syntax", "args-after-dots", "assign-type-mismatch", "await-in-sync", @@ -211,6 +212,30 @@ "keyword", "local-limit", "lowercase-global", + "lua-doc-miss-sign", + "luadoc-error-diag-mode", + "luadoc-miss-alias-extends", + "luadoc-miss-alias-name", + "luadoc-miss-arg-name", + "luadoc-miss-cate-name", + "luadoc-miss-class-extends-name", + "luadoc-miss-class-name", + "luadoc-miss-diag-mode", + "luadoc-miss-diag-name", + "luadoc-miss-field-extends", + "luadoc-miss-field-name", + "luadoc-miss-fun-after-overload", + "luadoc-miss-generic-name", + "luadoc-miss-local-name", + "luadoc-miss-module-name", + "luadoc-miss-operator-name", + "luadoc-miss-param-extends", + "luadoc-miss-param-name", + "luadoc-miss-sign-name", + "luadoc-miss-symbol", + "luadoc-miss-type-name", + "luadoc-miss-vararg-type", + "luadoc-miss-version", "malformed-number", "miss-end", "miss-esc-x", @@ -645,7 +670,7 @@ }, "assign-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.assign-type-mismatch%", + "description": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "enum": [ "Any", "Opened", @@ -658,7 +683,7 @@ }, "await-in-sync": { "default": "None", - "description": "%config.diagnostics.await-in-sync%", + "description": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", "enum": [ "Any", "Opened", @@ -671,7 +696,7 @@ }, "cast-local-type": { "default": "Opened", - "description": "%config.diagnostics.cast-local-type%", + "description": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", "enum": [ "Any", "Opened", @@ -684,7 +709,7 @@ }, "cast-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.cast-type-mismatch%", + "description": "Enable diagnostics for casts where the target type does not match the initial type.", "enum": [ "Any", "Opened", @@ -710,7 +735,7 @@ }, "close-non-object": { "default": "Any", - "description": "%config.diagnostics.close-non-object%", + "description": "Enable diagnostics for attempts to close a variable with a non-object.", "enum": [ "Any", "Opened", @@ -723,7 +748,7 @@ }, "code-after-break": { "default": "Opened", - "description": "%config.diagnostics.code-after-break%", + "description": "Enable diagnostics for code placed after a break statement in a loop.", "enum": [ "Any", "Opened", @@ -736,7 +761,7 @@ }, "codestyle-check": { "default": "None", - "description": "%config.diagnostics.codestyle-check%", + "description": "Enable diagnostics for incorrectly styled lines.", "enum": [ "Any", "Opened", @@ -749,7 +774,7 @@ }, "count-down-loop": { "default": "Any", - "description": "%config.diagnostics.count-down-loop%", + "description": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", "enum": [ "Any", "Opened", @@ -762,7 +787,7 @@ }, "deprecated": { "default": "Any", - "description": "%config.diagnostics.deprecated%", + "description": "Enable diagnostics to highlight deprecated API.", "enum": [ "Any", "Opened", @@ -775,7 +800,7 @@ }, "different-requires": { "default": "Any", - "description": "%config.diagnostics.different-requires%", + "description": "Enable diagnostics for files which are required by two different paths.", "enum": [ "Any", "Opened", @@ -788,7 +813,7 @@ }, "discard-returns": { "default": "Any", - "description": "%config.diagnostics.discard-returns%", + "description": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", "enum": [ "Any", "Opened", @@ -801,7 +826,7 @@ }, "doc-field-no-class": { "default": "Any", - "description": "%config.diagnostics.doc-field-no-class%", + "description": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "enum": [ "Any", "Opened", @@ -814,7 +839,7 @@ }, "duplicate-doc-alias": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-alias%", + "description": "Enable diagnostics for a duplicated alias annotation name.", "enum": [ "Any", "Opened", @@ -827,7 +852,7 @@ }, "duplicate-doc-field": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-field%", + "description": "Enable diagnostics for a duplicated field annotation name.", "enum": [ "Any", "Opened", @@ -840,7 +865,7 @@ }, "duplicate-doc-param": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-param%", + "description": "Enable diagnostics for a duplicated param annotation name.", "enum": [ "Any", "Opened", @@ -866,7 +891,7 @@ }, "duplicate-set-field": { "default": "Any", - "description": "%config.diagnostics.duplicate-set-field%", + "description": "Enable diagnostics for setting the same field in a class more than once.", "enum": [ "Any", "Opened", @@ -918,7 +943,7 @@ }, "missing-parameter": { "default": "Any", - "description": "%config.diagnostics.missing-parameter%", + "description": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", "enum": [ "Any", "Opened", @@ -931,7 +956,7 @@ }, "missing-return": { "default": "Any", - "description": "%config.diagnostics.missing-return%", + "description": "Enable diagnostics for functions with return annotations which have no return statement.", "enum": [ "Any", "Opened", @@ -944,7 +969,7 @@ }, "missing-return-value": { "default": "Any", - "description": "%config.diagnostics.missing-return-value%", + "description": "Enable diagnostics for return statements without values although the containing function declares returns.", "enum": [ "Any", "Opened", @@ -957,7 +982,7 @@ }, "need-check-nil": { "default": "Opened", - "description": "%config.diagnostics.need-check-nil%", + "description": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "enum": [ "Any", "Opened", @@ -996,7 +1021,7 @@ }, "no-unknown": { "default": "None", - "description": "%config.diagnostics.no-unknown%", + "description": "Enable diagnostics for cases in which the type cannot be inferred.", "enum": [ "Any", "Opened", @@ -1009,7 +1034,7 @@ }, "not-yieldable": { "default": "None", - "description": "%config.diagnostics.not-yieldable%", + "description": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", "enum": [ "Any", "Opened", @@ -1022,7 +1047,7 @@ }, "param-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.param-type-mismatch%", + "description": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "enum": [ "Any", "Opened", @@ -1061,7 +1086,7 @@ }, "redundant-return": { "default": "Opened", - "description": "%config.diagnostics.redundant-return%", + "description": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", "enum": [ "Any", "Opened", @@ -1074,7 +1099,7 @@ }, "redundant-return-value": { "default": "Any", - "description": "%config.diagnostics.redundant-return-value%", + "description": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "enum": [ "Any", "Opened", @@ -1100,7 +1125,7 @@ }, "return-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.return-type-mismatch%", + "description": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "enum": [ "Any", "Opened", @@ -1113,7 +1138,7 @@ }, "spell-check": { "default": "None", - "description": "%config.diagnostics.spell-check%", + "description": "Enable diagnostics for typos in strings.", "enum": [ "Any", "Opened", @@ -1139,7 +1164,7 @@ }, "unbalanced-assignments": { "default": "Any", - "description": "%config.diagnostics.unbalanced-assignments%", + "description": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", "enum": [ "Any", "Opened", @@ -1152,7 +1177,7 @@ }, "undefined-doc-class": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-class%", + "description": "Enable diagnostics for class annotations in which an undefined class is referenced.", "enum": [ "Any", "Opened", @@ -1165,7 +1190,7 @@ }, "undefined-doc-name": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-name%", + "description": "Enable diagnostics for type annotations referencing an undefined type or alias.", "enum": [ "Any", "Opened", @@ -1178,7 +1203,7 @@ }, "undefined-doc-param": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-param%", + "description": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "enum": [ "Any", "Opened", @@ -1204,7 +1229,7 @@ }, "undefined-field": { "default": "Opened", - "description": "%config.diagnostics.undefined-field%", + "description": "Enable diagnostics for cases in which an undefined field of a variable is read.", "enum": [ "Any", "Opened", @@ -1230,7 +1255,7 @@ }, "unknown-cast-variable": { "default": "Any", - "description": "%config.diagnostics.unknown-cast-variable%", + "description": "Enable diagnostics for casts of undefined variables.", "enum": [ "Any", "Opened", @@ -1243,7 +1268,7 @@ }, "unknown-diag-code": { "default": "Any", - "description": "%config.diagnostics.unknown-diag-code%", + "description": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", "enum": [ "Any", "Opened", @@ -1256,7 +1281,7 @@ }, "unknown-operator": { "default": "Any", - "description": "%config.diagnostics.unknown-operator%", + "description": "Enable diagnostics for unknown operators.", "enum": [ "Any", "Opened", @@ -1269,7 +1294,7 @@ }, "unreachable-code": { "default": "Opened", - "description": "%config.diagnostics.unreachable-code%", + "description": "Enable diagnostics for unreachable code.", "enum": [ "Any", "Opened", @@ -1358,7 +1383,7 @@ }, "assign-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.assign-type-mismatch%", + "description": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "enum": [ "Error", "Warning", @@ -1373,7 +1398,7 @@ }, "await-in-sync": { "default": "Warning", - "description": "%config.diagnostics.await-in-sync%", + "description": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", "enum": [ "Error", "Warning", @@ -1388,7 +1413,7 @@ }, "cast-local-type": { "default": "Warning", - "description": "%config.diagnostics.cast-local-type%", + "description": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", "enum": [ "Error", "Warning", @@ -1403,7 +1428,7 @@ }, "cast-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.cast-type-mismatch%", + "description": "Enable diagnostics for casts where the target type does not match the initial type.", "enum": [ "Error", "Warning", @@ -1433,7 +1458,7 @@ }, "close-non-object": { "default": "Warning", - "description": "%config.diagnostics.close-non-object%", + "description": "Enable diagnostics for attempts to close a variable with a non-object.", "enum": [ "Error", "Warning", @@ -1448,7 +1473,7 @@ }, "code-after-break": { "default": "Hint", - "description": "%config.diagnostics.code-after-break%", + "description": "Enable diagnostics for code placed after a break statement in a loop.", "enum": [ "Error", "Warning", @@ -1463,7 +1488,7 @@ }, "codestyle-check": { "default": "Warning", - "description": "%config.diagnostics.codestyle-check%", + "description": "Enable diagnostics for incorrectly styled lines.", "enum": [ "Error", "Warning", @@ -1478,7 +1503,7 @@ }, "count-down-loop": { "default": "Warning", - "description": "%config.diagnostics.count-down-loop%", + "description": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", "enum": [ "Error", "Warning", @@ -1493,7 +1518,7 @@ }, "deprecated": { "default": "Warning", - "description": "%config.diagnostics.deprecated%", + "description": "Enable diagnostics to highlight deprecated API.", "enum": [ "Error", "Warning", @@ -1508,7 +1533,7 @@ }, "different-requires": { "default": "Warning", - "description": "%config.diagnostics.different-requires%", + "description": "Enable diagnostics for files which are required by two different paths.", "enum": [ "Error", "Warning", @@ -1523,7 +1548,7 @@ }, "discard-returns": { "default": "Warning", - "description": "%config.diagnostics.discard-returns%", + "description": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", "enum": [ "Error", "Warning", @@ -1538,7 +1563,7 @@ }, "doc-field-no-class": { "default": "Warning", - "description": "%config.diagnostics.doc-field-no-class%", + "description": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "enum": [ "Error", "Warning", @@ -1553,7 +1578,7 @@ }, "duplicate-doc-alias": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-alias%", + "description": "Enable diagnostics for a duplicated alias annotation name.", "enum": [ "Error", "Warning", @@ -1568,7 +1593,7 @@ }, "duplicate-doc-field": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-field%", + "description": "Enable diagnostics for a duplicated field annotation name.", "enum": [ "Error", "Warning", @@ -1583,7 +1608,7 @@ }, "duplicate-doc-param": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-param%", + "description": "Enable diagnostics for a duplicated param annotation name.", "enum": [ "Error", "Warning", @@ -1613,7 +1638,7 @@ }, "duplicate-set-field": { "default": "Warning", - "description": "%config.diagnostics.duplicate-set-field%", + "description": "Enable diagnostics for setting the same field in a class more than once.", "enum": [ "Error", "Warning", @@ -1673,7 +1698,7 @@ }, "missing-parameter": { "default": "Warning", - "description": "%config.diagnostics.missing-parameter%", + "description": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", "enum": [ "Error", "Warning", @@ -1688,7 +1713,7 @@ }, "missing-return": { "default": "Warning", - "description": "%config.diagnostics.missing-return%", + "description": "Enable diagnostics for functions with return annotations which have no return statement.", "enum": [ "Error", "Warning", @@ -1703,7 +1728,7 @@ }, "missing-return-value": { "default": "Warning", - "description": "%config.diagnostics.missing-return-value%", + "description": "Enable diagnostics for return statements without values although the containing function declares returns.", "enum": [ "Error", "Warning", @@ -1718,7 +1743,7 @@ }, "need-check-nil": { "default": "Warning", - "description": "%config.diagnostics.need-check-nil%", + "description": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "enum": [ "Error", "Warning", @@ -1763,7 +1788,7 @@ }, "no-unknown": { "default": "Warning", - "description": "%config.diagnostics.no-unknown%", + "description": "Enable diagnostics for cases in which the type cannot be inferred.", "enum": [ "Error", "Warning", @@ -1778,7 +1803,7 @@ }, "not-yieldable": { "default": "Warning", - "description": "%config.diagnostics.not-yieldable%", + "description": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", "enum": [ "Error", "Warning", @@ -1793,7 +1818,7 @@ }, "param-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.param-type-mismatch%", + "description": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "enum": [ "Error", "Warning", @@ -1838,7 +1863,7 @@ }, "redundant-return": { "default": "Hint", - "description": "%config.diagnostics.redundant-return%", + "description": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", "enum": [ "Error", "Warning", @@ -1853,7 +1878,7 @@ }, "redundant-return-value": { "default": "Warning", - "description": "%config.diagnostics.redundant-return-value%", + "description": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "enum": [ "Error", "Warning", @@ -1883,7 +1908,7 @@ }, "return-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.return-type-mismatch%", + "description": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "enum": [ "Error", "Warning", @@ -1898,7 +1923,7 @@ }, "spell-check": { "default": "Information", - "description": "%config.diagnostics.spell-check%", + "description": "Enable diagnostics for typos in strings.", "enum": [ "Error", "Warning", @@ -1928,7 +1953,7 @@ }, "unbalanced-assignments": { "default": "Warning", - "description": "%config.diagnostics.unbalanced-assignments%", + "description": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", "enum": [ "Error", "Warning", @@ -1943,7 +1968,7 @@ }, "undefined-doc-class": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-class%", + "description": "Enable diagnostics for class annotations in which an undefined class is referenced.", "enum": [ "Error", "Warning", @@ -1958,7 +1983,7 @@ }, "undefined-doc-name": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-name%", + "description": "Enable diagnostics for type annotations referencing an undefined type or alias.", "enum": [ "Error", "Warning", @@ -1973,7 +1998,7 @@ }, "undefined-doc-param": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-param%", + "description": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "enum": [ "Error", "Warning", @@ -2003,7 +2028,7 @@ }, "undefined-field": { "default": "Warning", - "description": "%config.diagnostics.undefined-field%", + "description": "Enable diagnostics for cases in which an undefined field of a variable is read.", "enum": [ "Error", "Warning", @@ -2033,7 +2058,7 @@ }, "unknown-cast-variable": { "default": "Warning", - "description": "%config.diagnostics.unknown-cast-variable%", + "description": "Enable diagnostics for casts of undefined variables.", "enum": [ "Error", "Warning", @@ -2048,7 +2073,7 @@ }, "unknown-diag-code": { "default": "Warning", - "description": "%config.diagnostics.unknown-diag-code%", + "description": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", "enum": [ "Error", "Warning", @@ -2063,7 +2088,7 @@ }, "unknown-operator": { "default": "Warning", - "description": "%config.diagnostics.unknown-operator%", + "description": "Enable diagnostics for unknown operators.", "enum": [ "Error", "Warning", @@ -2078,7 +2103,7 @@ }, "unreachable-code": { "default": "Hint", - "description": "%config.diagnostics.unreachable-code%", + "description": "Enable diagnostics for unreachable code.", "enum": [ "Error", "Warning", diff --git a/setting/schema-zh-tw.json b/setting/schema-zh-tw.json index e99dcb6918404831fcf63a6fc496daa7cd51e08e..92b1fa6ad2ca665fc65a1e8af6cabb32e170aba9 100644 --- a/setting/schema-zh-tw.json +++ b/setting/schema-zh-tw.json @@ -174,6 +174,7 @@ "enum": [ "action-after-return", "ambiguity-1", + "ambiguous-syntax", "args-after-dots", "assign-type-mismatch", "await-in-sync", @@ -211,6 +212,30 @@ "keyword", "local-limit", "lowercase-global", + "lua-doc-miss-sign", + "luadoc-error-diag-mode", + "luadoc-miss-alias-extends", + "luadoc-miss-alias-name", + "luadoc-miss-arg-name", + "luadoc-miss-cate-name", + "luadoc-miss-class-extends-name", + "luadoc-miss-class-name", + "luadoc-miss-diag-mode", + "luadoc-miss-diag-name", + "luadoc-miss-field-extends", + "luadoc-miss-field-name", + "luadoc-miss-fun-after-overload", + "luadoc-miss-generic-name", + "luadoc-miss-local-name", + "luadoc-miss-module-name", + "luadoc-miss-operator-name", + "luadoc-miss-param-extends", + "luadoc-miss-param-name", + "luadoc-miss-sign-name", + "luadoc-miss-symbol", + "luadoc-miss-type-name", + "luadoc-miss-vararg-type", + "luadoc-miss-version", "malformed-number", "miss-end", "miss-esc-x", @@ -645,7 +670,7 @@ }, "assign-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.assign-type-mismatch%", + "description": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "enum": [ "Any", "Opened", @@ -658,7 +683,7 @@ }, "await-in-sync": { "default": "None", - "description": "%config.diagnostics.await-in-sync%", + "description": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", "enum": [ "Any", "Opened", @@ -671,7 +696,7 @@ }, "cast-local-type": { "default": "Opened", - "description": "%config.diagnostics.cast-local-type%", + "description": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", "enum": [ "Any", "Opened", @@ -684,7 +709,7 @@ }, "cast-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.cast-type-mismatch%", + "description": "Enable diagnostics for casts where the target type does not match the initial type.", "enum": [ "Any", "Opened", @@ -710,7 +735,7 @@ }, "close-non-object": { "default": "Any", - "description": "%config.diagnostics.close-non-object%", + "description": "Enable diagnostics for attempts to close a variable with a non-object.", "enum": [ "Any", "Opened", @@ -723,7 +748,7 @@ }, "code-after-break": { "default": "Opened", - "description": "%config.diagnostics.code-after-break%", + "description": "Enable diagnostics for code placed after a break statement in a loop.", "enum": [ "Any", "Opened", @@ -736,7 +761,7 @@ }, "codestyle-check": { "default": "None", - "description": "%config.diagnostics.codestyle-check%", + "description": "Enable diagnostics for incorrectly styled lines.", "enum": [ "Any", "Opened", @@ -749,7 +774,7 @@ }, "count-down-loop": { "default": "Any", - "description": "%config.diagnostics.count-down-loop%", + "description": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", "enum": [ "Any", "Opened", @@ -762,7 +787,7 @@ }, "deprecated": { "default": "Any", - "description": "%config.diagnostics.deprecated%", + "description": "Enable diagnostics to highlight deprecated API.", "enum": [ "Any", "Opened", @@ -775,7 +800,7 @@ }, "different-requires": { "default": "Any", - "description": "%config.diagnostics.different-requires%", + "description": "Enable diagnostics for files which are required by two different paths.", "enum": [ "Any", "Opened", @@ -788,7 +813,7 @@ }, "discard-returns": { "default": "Any", - "description": "%config.diagnostics.discard-returns%", + "description": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", "enum": [ "Any", "Opened", @@ -801,7 +826,7 @@ }, "doc-field-no-class": { "default": "Any", - "description": "%config.diagnostics.doc-field-no-class%", + "description": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "enum": [ "Any", "Opened", @@ -814,7 +839,7 @@ }, "duplicate-doc-alias": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-alias%", + "description": "Enable diagnostics for a duplicated alias annotation name.", "enum": [ "Any", "Opened", @@ -827,7 +852,7 @@ }, "duplicate-doc-field": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-field%", + "description": "Enable diagnostics for a duplicated field annotation name.", "enum": [ "Any", "Opened", @@ -840,7 +865,7 @@ }, "duplicate-doc-param": { "default": "Any", - "description": "%config.diagnostics.duplicate-doc-param%", + "description": "Enable diagnostics for a duplicated param annotation name.", "enum": [ "Any", "Opened", @@ -866,7 +891,7 @@ }, "duplicate-set-field": { "default": "Any", - "description": "%config.diagnostics.duplicate-set-field%", + "description": "Enable diagnostics for setting the same field in a class more than once.", "enum": [ "Any", "Opened", @@ -918,7 +943,7 @@ }, "missing-parameter": { "default": "Any", - "description": "%config.diagnostics.missing-parameter%", + "description": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", "enum": [ "Any", "Opened", @@ -931,7 +956,7 @@ }, "missing-return": { "default": "Any", - "description": "%config.diagnostics.missing-return%", + "description": "Enable diagnostics for functions with return annotations which have no return statement.", "enum": [ "Any", "Opened", @@ -944,7 +969,7 @@ }, "missing-return-value": { "default": "Any", - "description": "%config.diagnostics.missing-return-value%", + "description": "Enable diagnostics for return statements without values although the containing function declares returns.", "enum": [ "Any", "Opened", @@ -957,7 +982,7 @@ }, "need-check-nil": { "default": "Opened", - "description": "%config.diagnostics.need-check-nil%", + "description": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "enum": [ "Any", "Opened", @@ -996,7 +1021,7 @@ }, "no-unknown": { "default": "None", - "description": "%config.diagnostics.no-unknown%", + "description": "Enable diagnostics for cases in which the type cannot be inferred.", "enum": [ "Any", "Opened", @@ -1009,7 +1034,7 @@ }, "not-yieldable": { "default": "None", - "description": "%config.diagnostics.not-yieldable%", + "description": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", "enum": [ "Any", "Opened", @@ -1022,7 +1047,7 @@ }, "param-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.param-type-mismatch%", + "description": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "enum": [ "Any", "Opened", @@ -1061,7 +1086,7 @@ }, "redundant-return": { "default": "Opened", - "description": "%config.diagnostics.redundant-return%", + "description": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", "enum": [ "Any", "Opened", @@ -1074,7 +1099,7 @@ }, "redundant-return-value": { "default": "Any", - "description": "%config.diagnostics.redundant-return-value%", + "description": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "enum": [ "Any", "Opened", @@ -1100,7 +1125,7 @@ }, "return-type-mismatch": { "default": "Opened", - "description": "%config.diagnostics.return-type-mismatch%", + "description": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "enum": [ "Any", "Opened", @@ -1113,7 +1138,7 @@ }, "spell-check": { "default": "None", - "description": "%config.diagnostics.spell-check%", + "description": "Enable diagnostics for typos in strings.", "enum": [ "Any", "Opened", @@ -1139,7 +1164,7 @@ }, "unbalanced-assignments": { "default": "Any", - "description": "%config.diagnostics.unbalanced-assignments%", + "description": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", "enum": [ "Any", "Opened", @@ -1152,7 +1177,7 @@ }, "undefined-doc-class": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-class%", + "description": "Enable diagnostics for class annotations in which an undefined class is referenced.", "enum": [ "Any", "Opened", @@ -1165,7 +1190,7 @@ }, "undefined-doc-name": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-name%", + "description": "Enable diagnostics for type annotations referencing an undefined type or alias.", "enum": [ "Any", "Opened", @@ -1178,7 +1203,7 @@ }, "undefined-doc-param": { "default": "Any", - "description": "%config.diagnostics.undefined-doc-param%", + "description": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "enum": [ "Any", "Opened", @@ -1204,7 +1229,7 @@ }, "undefined-field": { "default": "Opened", - "description": "%config.diagnostics.undefined-field%", + "description": "Enable diagnostics for cases in which an undefined field of a variable is read.", "enum": [ "Any", "Opened", @@ -1230,7 +1255,7 @@ }, "unknown-cast-variable": { "default": "Any", - "description": "%config.diagnostics.unknown-cast-variable%", + "description": "Enable diagnostics for casts of undefined variables.", "enum": [ "Any", "Opened", @@ -1243,7 +1268,7 @@ }, "unknown-diag-code": { "default": "Any", - "description": "%config.diagnostics.unknown-diag-code%", + "description": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", "enum": [ "Any", "Opened", @@ -1256,7 +1281,7 @@ }, "unknown-operator": { "default": "Any", - "description": "%config.diagnostics.unknown-operator%", + "description": "Enable diagnostics for unknown operators.", "enum": [ "Any", "Opened", @@ -1269,7 +1294,7 @@ }, "unreachable-code": { "default": "Opened", - "description": "%config.diagnostics.unreachable-code%", + "description": "Enable diagnostics for unreachable code.", "enum": [ "Any", "Opened", @@ -1358,7 +1383,7 @@ }, "assign-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.assign-type-mismatch%", + "description": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.", "enum": [ "Error", "Warning", @@ -1373,7 +1398,7 @@ }, "await-in-sync": { "default": "Warning", - "description": "%config.diagnostics.await-in-sync%", + "description": "Enable diagnostics for calls of asynchronous functions within a synchronous function.", "enum": [ "Error", "Warning", @@ -1388,7 +1413,7 @@ }, "cast-local-type": { "default": "Warning", - "description": "%config.diagnostics.cast-local-type%", + "description": "Enable diagnostics for casts of local variables where the target type does not match the defined type.", "enum": [ "Error", "Warning", @@ -1403,7 +1428,7 @@ }, "cast-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.cast-type-mismatch%", + "description": "Enable diagnostics for casts where the target type does not match the initial type.", "enum": [ "Error", "Warning", @@ -1433,7 +1458,7 @@ }, "close-non-object": { "default": "Warning", - "description": "%config.diagnostics.close-non-object%", + "description": "Enable diagnostics for attempts to close a variable with a non-object.", "enum": [ "Error", "Warning", @@ -1448,7 +1473,7 @@ }, "code-after-break": { "default": "Hint", - "description": "%config.diagnostics.code-after-break%", + "description": "Enable diagnostics for code placed after a break statement in a loop.", "enum": [ "Error", "Warning", @@ -1463,7 +1488,7 @@ }, "codestyle-check": { "default": "Warning", - "description": "%config.diagnostics.codestyle-check%", + "description": "Enable diagnostics for incorrectly styled lines.", "enum": [ "Error", "Warning", @@ -1478,7 +1503,7 @@ }, "count-down-loop": { "default": "Warning", - "description": "%config.diagnostics.count-down-loop%", + "description": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.", "enum": [ "Error", "Warning", @@ -1493,7 +1518,7 @@ }, "deprecated": { "default": "Warning", - "description": "%config.diagnostics.deprecated%", + "description": "Enable diagnostics to highlight deprecated API.", "enum": [ "Error", "Warning", @@ -1508,7 +1533,7 @@ }, "different-requires": { "default": "Warning", - "description": "%config.diagnostics.different-requires%", + "description": "Enable diagnostics for files which are required by two different paths.", "enum": [ "Error", "Warning", @@ -1523,7 +1548,7 @@ }, "discard-returns": { "default": "Warning", - "description": "%config.diagnostics.discard-returns%", + "description": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.", "enum": [ "Error", "Warning", @@ -1538,7 +1563,7 @@ }, "doc-field-no-class": { "default": "Warning", - "description": "%config.diagnostics.doc-field-no-class%", + "description": "Enable diagnostics to highlight a field annotation without a defining class annotation.", "enum": [ "Error", "Warning", @@ -1553,7 +1578,7 @@ }, "duplicate-doc-alias": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-alias%", + "description": "Enable diagnostics for a duplicated alias annotation name.", "enum": [ "Error", "Warning", @@ -1568,7 +1593,7 @@ }, "duplicate-doc-field": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-field%", + "description": "Enable diagnostics for a duplicated field annotation name.", "enum": [ "Error", "Warning", @@ -1583,7 +1608,7 @@ }, "duplicate-doc-param": { "default": "Warning", - "description": "%config.diagnostics.duplicate-doc-param%", + "description": "Enable diagnostics for a duplicated param annotation name.", "enum": [ "Error", "Warning", @@ -1613,7 +1638,7 @@ }, "duplicate-set-field": { "default": "Warning", - "description": "%config.diagnostics.duplicate-set-field%", + "description": "Enable diagnostics for setting the same field in a class more than once.", "enum": [ "Error", "Warning", @@ -1673,7 +1698,7 @@ }, "missing-parameter": { "default": "Warning", - "description": "%config.diagnostics.missing-parameter%", + "description": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.", "enum": [ "Error", "Warning", @@ -1688,7 +1713,7 @@ }, "missing-return": { "default": "Warning", - "description": "%config.diagnostics.missing-return%", + "description": "Enable diagnostics for functions with return annotations which have no return statement.", "enum": [ "Error", "Warning", @@ -1703,7 +1728,7 @@ }, "missing-return-value": { "default": "Warning", - "description": "%config.diagnostics.missing-return-value%", + "description": "Enable diagnostics for return statements without values although the containing function declares returns.", "enum": [ "Error", "Warning", @@ -1718,7 +1743,7 @@ }, "need-check-nil": { "default": "Warning", - "description": "%config.diagnostics.need-check-nil%", + "description": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.", "enum": [ "Error", "Warning", @@ -1763,7 +1788,7 @@ }, "no-unknown": { "default": "Warning", - "description": "%config.diagnostics.no-unknown%", + "description": "Enable diagnostics for cases in which the type cannot be inferred.", "enum": [ "Error", "Warning", @@ -1778,7 +1803,7 @@ }, "not-yieldable": { "default": "Warning", - "description": "%config.diagnostics.not-yieldable%", + "description": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.", "enum": [ "Error", "Warning", @@ -1793,7 +1818,7 @@ }, "param-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.param-type-mismatch%", + "description": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.", "enum": [ "Error", "Warning", @@ -1838,7 +1863,7 @@ }, "redundant-return": { "default": "Hint", - "description": "%config.diagnostics.redundant-return%", + "description": "Enable diagnostics for return statements which are not needed because the function would exit on its own.", "enum": [ "Error", "Warning", @@ -1853,7 +1878,7 @@ }, "redundant-return-value": { "default": "Warning", - "description": "%config.diagnostics.redundant-return-value%", + "description": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.", "enum": [ "Error", "Warning", @@ -1883,7 +1908,7 @@ }, "return-type-mismatch": { "default": "Warning", - "description": "%config.diagnostics.return-type-mismatch%", + "description": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.", "enum": [ "Error", "Warning", @@ -1898,7 +1923,7 @@ }, "spell-check": { "default": "Information", - "description": "%config.diagnostics.spell-check%", + "description": "Enable diagnostics for typos in strings.", "enum": [ "Error", "Warning", @@ -1928,7 +1953,7 @@ }, "unbalanced-assignments": { "default": "Warning", - "description": "%config.diagnostics.unbalanced-assignments%", + "description": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).", "enum": [ "Error", "Warning", @@ -1943,7 +1968,7 @@ }, "undefined-doc-class": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-class%", + "description": "Enable diagnostics for class annotations in which an undefined class is referenced.", "enum": [ "Error", "Warning", @@ -1958,7 +1983,7 @@ }, "undefined-doc-name": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-name%", + "description": "Enable diagnostics for type annotations referencing an undefined type or alias.", "enum": [ "Error", "Warning", @@ -1973,7 +1998,7 @@ }, "undefined-doc-param": { "default": "Warning", - "description": "%config.diagnostics.undefined-doc-param%", + "description": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.", "enum": [ "Error", "Warning", @@ -2003,7 +2028,7 @@ }, "undefined-field": { "default": "Warning", - "description": "%config.diagnostics.undefined-field%", + "description": "Enable diagnostics for cases in which an undefined field of a variable is read.", "enum": [ "Error", "Warning", @@ -2033,7 +2058,7 @@ }, "unknown-cast-variable": { "default": "Warning", - "description": "%config.diagnostics.unknown-cast-variable%", + "description": "Enable diagnostics for casts of undefined variables.", "enum": [ "Error", "Warning", @@ -2048,7 +2073,7 @@ }, "unknown-diag-code": { "default": "Warning", - "description": "%config.diagnostics.unknown-diag-code%", + "description": "Enable diagnostics in cases in which an unknown diagnostics code is entered.", "enum": [ "Error", "Warning", @@ -2063,7 +2088,7 @@ }, "unknown-operator": { "default": "Warning", - "description": "%config.diagnostics.unknown-operator%", + "description": "Enable diagnostics for unknown operators.", "enum": [ "Error", "Warning", @@ -2078,7 +2103,7 @@ }, "unreachable-code": { "default": "Hint", - "description": "%config.diagnostics.unreachable-code%", + "description": "Enable diagnostics for unreachable code.", "enum": [ "Error", "Warning", diff --git a/setting/schema.json b/setting/schema.json index c721a614780bba98db2180435c273f555284f3cd..cf520e0ce323bf0eb5af8c94204b39bc8bfe89d3 100644 --- a/setting/schema.json +++ b/setting/schema.json @@ -174,6 +174,7 @@ "enum": [ "action-after-return", "ambiguity-1", + "ambiguous-syntax", "args-after-dots", "assign-type-mismatch", "await-in-sync", @@ -211,6 +212,30 @@ "keyword", "local-limit", "lowercase-global", + "lua-doc-miss-sign", + "luadoc-error-diag-mode", + "luadoc-miss-alias-extends", + "luadoc-miss-alias-name", + "luadoc-miss-arg-name", + "luadoc-miss-cate-name", + "luadoc-miss-class-extends-name", + "luadoc-miss-class-name", + "luadoc-miss-diag-mode", + "luadoc-miss-diag-name", + "luadoc-miss-field-extends", + "luadoc-miss-field-name", + "luadoc-miss-fun-after-overload", + "luadoc-miss-generic-name", + "luadoc-miss-local-name", + "luadoc-miss-module-name", + "luadoc-miss-operator-name", + "luadoc-miss-param-extends", + "luadoc-miss-param-name", + "luadoc-miss-sign-name", + "luadoc-miss-symbol", + "luadoc-miss-type-name", + "luadoc-miss-vararg-type", + "luadoc-miss-version", "malformed-number", "miss-end", "miss-esc-x", @@ -697,7 +722,7 @@ }, "circle-doc-class": { "default": "Any", - "description": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.", + "description": "%config.diagnostics.circle-doc-class%", "enum": [ "Any", "Opened", @@ -1418,7 +1443,7 @@ }, "circle-doc-class": { "default": "Warning", - "description": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.", + "description": "%config.diagnostics.circle-doc-class%", "enum": [ "Error", "Warning",