-
Notifications
You must be signed in to change notification settings - Fork 274
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
Add max-len rule #1613
Add max-len rule #1613
Conversation
@brandonpayton I ran the |
// @TODO: Don't process the command. Lean on the shell to do it, e.g. through | ||
// a PATH or an alias. | ||
// @TODO: Don't process the command. Lean on the shell to do it, e.g. | ||
// through a PATH or an alias. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to see "e.g." next to the subsequent text, but this is OK and to be expected for auto-fix output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's kind of funny when the auto-fix wraps a single word to the next line, but overall this looks fine to me.
I'm planning to remove the ignorePattern
which seems unused, rerun the fix to make sure that change didn't break anything, and merge.
Thank you, @bgrgicak!
Long doc comments are hard to read and it's easy to write long comments. We need an automated way of checking for the comment length. This PR adds [eslint-plugin-comment-length](https://www.npmjs.com/package/eslint-plugin-comment-length?activeTab=readme) to implement comment max-len `eslint` rules. The errors aren't fixed to avoid creating issues with this PR, but they will show up as warnings, so we can fix them in the future. - CI
Motivation for the change, related issues
Long doc comments are hard to read and it's easy to write long comments.
We need an automated way of checking for the comment length.
Implementation details
This PR adds eslint-plugin-comment-length to implement comment max-len
eslint
rules.The errors aren't fixed to avoid creating issues with this PR, but they will show up as warnings, so we can fix them in the future.
Testing Instructions (or ideally a Blueprint)