opened
TuckerWhitehouse
username_0
#184 added support for auto-fixing the `check-tag-names`, but it looks like the replacement is on the entire string, and not tag names specifically. This PR is to prefix the replacement with an `@` symbol to try and target tag names.

I'm not sure if it would be better to do a global find and replace so all tag names are updated, not just the first match? e.g. `new RegExp('@' + jsdocTag.tag, 'g')`

I was also looking to add tests, but I didn't see anything for the autofixes - if you have some guidance on how I might go about adding them, I'd be more than happy to.
Prefix the tag name with an @ sign to avoid replacements in non-tag-names
issue
created
TuckerWhitehouse
username_0
Sorry, I think this is actually a bug. Give a comment like this:
```js
/**
 * Some description that talks about the return value...

 * @return {Object}
 */
```
The current behaviour replaces `return` with `returns` in the description and leaves the tag name unmodified. Because the tag name is unchanged, the fix will run on every execution and continue to replace `return` with `returns` which ends up with something like this:
```js
/**
 * Some description that talks about the returnssssssssssssssss value...

 * @return {Object}
 */
```
comment
created
gajus
username_1
Thank you for the explanation.
comment
created
gajus
username_1
:tada: This PR is included in version 4.8.4 :tada:

The release is available on:
- [npm package (@latest dist-tag)](https://www.npmjs.com/package/eslint-plugin-jsdoc)
- [GitHub release](https://github.com/username_1/eslint-plugin-jsdoc/releases/tag/v4.8.4)

Your **[semantic-release](https://github.com/semantic-release/semantic-release)** bot :package::rocket:
comment