Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

harper-ls doesn't check lines that start with JSDoc tags #265

Open
mcecode opened this issue Nov 4, 2024 · 0 comments
Open

harper-ls doesn't check lines that start with JSDoc tags #265

mcecode opened this issue Nov 4, 2024 · 0 comments

Comments

@mcecode
Copy link
Contributor

mcecode commented Nov 4, 2024

When harper-ls checks JSDoc comments, it seems to ignore lines that start with JSDoc tags so some descriptions won't be linted. For example, in the snippet below, harper-ls doesn't indicate that "zpelling" is wrong.

/**
 * @param {string} message - Wrong zpelling
 */
function print(message) {
  console.log(message);
}

It works when the description is moved to the next line, like so:

/**
 * @param {string} message
 *   Wrong zpelling
 */
function print(message) {
  console.log(message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant