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
max-len indented comments #6322
Comments
This is actually pretty easy to recreate: function foo() {
//this is a long comment this is a long comment this is a long comment this is a long comment this is a long commentthis is a long comment this is a long comment this is a long comment this is a long comment this is a long commentthis is a long comment this is a long comment this is a long comment this is a long comment this is a long comment
} I could be making a bad assumption here, but this could be as simple as a check in |
Was able to recreate locally with the latest version of ESLint. With the provided configuration, function foo() {
//this is a long comment this is a long comment this is a long comment this is a long comment this is a long commentthis is a long comment this is a long comment this is a long comment this is a long comment this is a long commentthis is a long comment this is a long comment this is a long comment this is a long comment this is a long comment
} errors, but function foo() {
//this is a long comment this is a long comment this is a long comment this is a long comment this is a long commentthis is a long comment this is a long comment this is a long comment this is a long comment this is a long commentthis is a long comment this is a long comment this is a long comment this is a long comment this is a long comment
} does not. |
In looking over it quickly, it looks to me like a bug in |
I wasn't sure about the Thanks @kaicataldo! |
What version of ESLint are you using?
2.11.1
(from my package.json: ^2.11.1)What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration: full config piece concerned with:
What did you do? Please include the actual source code causing the issue. I found the issues when a single line comment was indented but longer than my set
comments
lengthactual code with issue:
What did you expect to happen? max-len to throw an error
What actually happened? Please include the actual, raw output from ESLint. went a long like everything was cool.
The text was updated successfully, but these errors were encountered: