Skip to content

require-jsdoc fixer: Insert default comment instead of empty #1163

@jonaaix

Description

@jonaaix

Motivation

I am using require-jsdoc to mark an error if a function is missing a comment.
image

Current behavior

When running the autofix, it will add an empty comment which is still no considered to be valid.
image

Desired behavior

When running the autofix, it should insert a configurable default comment, which fixes the error entirely, by defining a default text. This also helps to find the undocumented functions later in the IDE search.

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions