Open
Description
Component
Forge
Describe the feature you would like
@inheritdoc
should pickup the parameters description even if the parameters name differ.
Additional context
I have the following Natspec doc in my interface:
/**
* @notice Mints `amount` token to `recipient`.
* @param recipient The address of the account receiving minted token.
* @param amount The amount of token to mint.
*/
function mint(address recipient, uint256 amount) external;
In my contract, I inherit from the Natspec doc the following way:
/// @inheritdoc IZeroToken
function mint(address recipient_, uint256 amount_) external onlyStandardGovernor {
_mint(recipient_, amount_);
}
As you can see, the parameters are suffixed by _
and in consequence, forge doc
does not pickup the parameters description:
I think the try_match_inheritdoc
function can be improved to match parameters that are prefixed or suffixed by _
:
Metadata
Metadata
Assignees
Type
Projects
Status
Todo