valid_docs rule failing on throws
inside a closure in a function.
#451
Labels
bug
Unexpected and reproducible misbehavior.
throws
inside a closure in a function.
#451
The rule is failing on a given function declaration:
From the code - it looks like we are simply doing a regex capture for the
throws
signature, which is technically not correct, as the documentation should be purely on thethrows
that preceeds the function return parameters.According to the grammar, where optional pieces are italic - it captures the one inside parameter-clauses, but should only look at the one after all of the parameter clauses.
function-signature → parameter-clauses throws _function-result_
The text was updated successfully, but these errors were encountered: