Skip to content

NatSpec: Restrict @param validation to input parameters.#16667

Open
cuiweixie wants to merge 1 commit intoargotorg:developfrom
cuiweixie:fix/docstring-param-input-only
Open

NatSpec: Restrict @param validation to input parameters.#16667
cuiweixie wants to merge 1 commit intoargotorg:developfrom
cuiweixie:fix/docstring-param-input-only

Conversation

@cuiweixie
Copy link
Copy Markdown
Contributor

@cuiweixie cuiweixie commented May 3, 2026

Description

Named return bindings are surfaced through @return documentation, whereas @param historically also accepted those identifiers and blurred the distinction. By mirroring downstream NatSpec tooling expectations, exclude return parameter names when checking DocString @param tags so only inbound arguments count as documented parameters rather than permitting duplicate coverage paths.

Checklist

AI Disclosure

  • No AI tools were used
  • AI tools were used (details below)

Named return bindings are surfaced through @return documentation, whereas @param historically also accepted those identifiers and blurred the distinction. By mirroring downstream NatSpec tooling expectations, exclude return parameter names when checking DocString @param tags so only inbound arguments count as documented parameters rather than permitting duplicate coverage paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant