Skip to content

Conversation

AndreaWalchshoferSCCH
Copy link
Collaborator

@AndreaWalchshoferSCCH AndreaWalchshoferSCCH commented Jun 27, 2023

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...)

@AndreaWalchshoferSCCH AndreaWalchshoferSCCH changed the title Awa/incomplete signature doc (Draft!) Adapt incomplete-signature-doc to warn about incomplete, not missing docs Jun 27, 2023
@AndreaWalchshoferSCCH AndreaWalchshoferSCCH merged commit 8a884c3 into master Jun 28, 2023
@AndreaWalchshoferSCCH AndreaWalchshoferSCCH deleted the awa/incomplete-signature-doc branch June 28, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants