summaryrefslogtreecommitdiff
path: root/test/diagnostics
AgeCommit message (Collapse)Author
2024-08-16`undefined-field` supports `enum`最萌小汐
close #2469
2024-08-16Add setting: `Lua.type.checkTableShape`最萌小汐
2024-08-15Merge branch 'master' into cast-table-to-class最萌小汐
2024-07-28add testNeOzay
2024-07-24also detects missing index fieldsNeOzay
2024-07-23improve missing-fields diagnostic logicNeOzay
2024-07-15Merge branch 'master' into fixes-a-specific-case-for-getVisibleType最萌小汐
2024-07-15Merge branch 'master' into luaReg最萌小汐
2024-07-13add testNeOzay
2024-07-12added lua regular expression support for Lua.doc.<scope>NameNeOzay
2024-07-08fix: add a missing check for inject-field diagnosticsNeOzay
2024-04-18`merge` 改叫 `partial`最萌小汐
2024-04-18如果有 merge 属性,则跳过 `duplicate-doc-alias` 检查最萌小汐
2024-04-18支持多个enum合并最萌小汐
2024-04-17修正 `discard-returns` 对条件的误报最萌小汐
2024-03-25Detect discard-returns in all block typesJakub
2024-02-26update testfesily
2024-02-21add infer function param typefesily
2024-01-30support tuple typelizho
2024-01-24Revert "Merge pull request #2481 from ↵最萌小汐
fesily/automatic-derivation-function-param-type" This reverts commit 34319c7990cba47ddc00e77aabfccbb923f84e26, reversing changes made to ef7157c450254b0ee447960b0cb06d6f1b0dbaaa.
2024-01-16automatic derivation function param typefesily
2023-08-23support `---@class (exact)`最萌小汐
#1990
2023-08-22fix wrong `missing-fields` with union types最萌小汐
fix #2252
2023-08-16supports `---@enum (key)`最萌小汐
2023-08-14check `doc.field`最萌小汐
#1990
2023-08-14also check `doc.type.table`最萌小汐
2023-08-11stash最萌小汐
2023-08-11support `---@type` and `--[[@as]]` for return最萌小汐
resolve #2144
2023-08-11cleanup tests最萌小汐
2023-08-11cleanup tests最萌小汐
2023-08-11cleanup tests最萌小汐
2023-08-11clean up tests最萌小汐
2023-08-11clean up tests最萌小汐
2023-07-25fix #2214最萌小汐
2023-07-21fix `missing-fields`最萌小汐
2023-07-20new diagnostic: `missing-fields`最萌小汐
2023-06-28Adapt incomplete-signature-doc to warn about incomplete, not missing docs (#9)AndreaWalchshoferSCCH
Previously, the diagnostic `incomplete-signature-doc` is ignoring fully undocumented functions - but is already triggered by a simple comment. This turns out to be impractical in a few cases, as it also forces a full documentation of functions that should just be annotated with `---@async` (and is therefore not yet fully compatible with `await-in-sync`) So this PR adapts the diagnostic to only warn about **incomplete** signature docs, so it requires at least one `@param` or `@return` annotation before a warning is given. (Otherwise, it would be a missing signature doc, and there's separate diagnostics about that...)
2023-06-13bind overloads最萌小汐
fix #2083
2023-05-11Annotation rule for exported local functionsThomas Wetzlmaier
Annotation for the following local function func1 is required. local mod = { } local function func1() end mod.Func1 = func1 return mod;
2023-04-24Cleanup PRAndreaWalchshoferSCCH
Revert Changes made from unrelated PR
2023-04-19Warn about missing '---comment', '@return' and '@param' annotations (#3)Thomas Wetzlmaier
All functions that have at least one such annotation should be fully annotated in that respect, because we find that partially annotating something leads to confusion. However, all global functions must always be fully annotated, because they should be avoided in the first place, but if necessary then only with the maximum amount of documentation/support for those who use them! We provide the following keys for the `diagnostics.disable` setting to specifically deactive these checks: _missing-global-doc_: global function definitions which are not fully annotated. _incomplete-signature-doc_: function definitions that have some annotations but are not fully annotated
2023-04-04Add diagnostic to enforce lowercase local element names (#6)AndreaWalchshoferSCCH
- diagnostic `uppercase-local` in group `conventions`, disabled by default - isolated unit tests for diagnostic
2023-03-30Incorporate Review Comments (#4)AndreaWalchshoferSCCH
* add newlines to end of files * change the group name to `conventions`
2023-03-30Revert "Add diagnostic to enforce lowercase local element names (#2)" (#5)AndreaWalchshoferSCCH
This reverts commit 43794193ef981ffecb477bfce444428ded852aa0.
2023-03-30Add diagnostic to enforce lowercase local element names (#2)AndreaWalchshoferSCCH
2023-03-22Merge remote-tracking branch 'upstream/master'alwo
2023-03-22recover mark before return最萌小汐
fix #2004
2023-03-22Add diagnostic warning about any global (#1)AndreaWalchshoferSCCH
* Add warning for any global variable via diagnostic * Add messages in en-US TODO: add messages in languages other than en-us as well * fallback: enable/disable diagnostics w/ annotation * Add tests for the new diagnostic * Add diagnostic and group to config.md
2023-03-08fix #1928最萌小汐
2023-03-08should check type of `self`最萌小汐
fix #1922