Skip to content

Commit

Permalink
fix(match-description): drop throws and yields from being repor…
Browse files Browse the repository at this point in the history
…ted for non-empty descriptions by `nonemptyTags` default; #1126
  • Loading branch information
brettz9 committed Jun 30, 2023
1 parent 00922c3 commit 03578ca
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .README/rules/match-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ some content:
- `@example`
- `@see`
- `@todo`
- `@throws`/`@exception`
- `@yields`/`@yield`

If you supply your own tag description for any of the above tags in `tags`,
your description will take precedence.
Expand Down
2 changes: 0 additions & 2 deletions docs/rules/match-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ some content:
- `@example`
- `@see`
- `@todo`
- `@throws`/`@exception`
- `@yields`/`@yield`

If you supply your own tag description for any of the above tags in `tags`,
your description will take precedence.
Expand Down
2 changes: 0 additions & 2 deletions src/rules/matchDescription.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ export default iterateJsdoc(({
'copyright',
'example',
'see',
'throws',
'todo',
'yields',
]) {
utils.forEachPreferredTag(tag, (matchingJsdocTag, targetTagName) => {
const desc = (matchingJsdocTag.name + ' ' + utils.getTagDescription(matchingJsdocTag)).trim();
Expand Down

0 comments on commit 03578ca

Please sign in to comment.