-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
Motivation
I would like to use this plugin to enforce the same on the use of @throws tags as I can enforce on @returns, @param, and @property tags. By that I mean, in addition to the require-throws rule I would like to see the rules:
require-throws-description: Requires that the@throwstag has a description value.require-throws-type: Requires that@throwstag has type value.
Current behavior
The require-throws rule just enforces that the @throws tag is used. If the match-description rule is also used the description may be enforced as well.
Desired behavior
The plugin can be used to enforce:
- A description is provided for
@throws(rather than the specific description format enforced by thematch-descriptionrule, similar torequire-param-descriptionetc.). - A type is provided for
@throws.
Alternatives considered
- Using the
match-descriptionrule to enforce a description on@throws. - None