You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jsdoc/informative-docs will scan the body and all tags of a JSDoc tag for informative-ness. This is good and intended in most cases. But sometimes, there are tags that are used as categorization / metadata and only coincidentally match the name of the construct they're documenting. For example:
/** * Calculates and retrieves the compiler options for the current project. * @category Compiler Options */functiongetCompilerOptions(){// ...}
Aha! #1153 - that must be why it didn't come up in my searches. Nice. Thanks - will send a docs PR.
JoshuaKGoldberg
changed the title
Allow excluding individual tags from informative-docs
Missing docs for informative-docs > excludedTags option
Mar 9, 2024
Motivation
jsdoc/informative-docs
will scan the body and all tags of a JSDoc tag for informative-ness. This is good and intended in most cases. But sometimes, there are tags that are used as categorization / metadata and only coincidentally match the name of the construct they're documenting. For example:Standalone reproduction of that snippet for reference: https://github.com/JoshuaKGoldberg/repros/tree/jsdoc-informative-docs-category-tag
Current behavior
Desired behavior
Can we add an option to the rule to allow a list of tags to be ignored? Say,
ignoredTags
?Alternatives considered
An inline disable comment is doable, but clutters the code and is generally inconvenient.
The text was updated successfully, but these errors were encountered: