Open swang opened 9 years ago
I put the whole file in a gist >>
https://gist.github.com/startswithaj/ef410b67bcd80b9a272f
Not in the screen shot I have 28 lines.
Also still have strange issues with this.
I can reproduce the error with a stripped down example:
class MyClass
myFunction: ->
someVar = "someText"
someVar
Produces the error
#4: Wrong count of newlines between a class and other code. Expected 3 got 2.
The stripped down coffelint.json
:
{
"newlines_after_classes": {
"value": 3,
"level": "warn"
}
}
The error disappears after removing the blank line in the function body.
See https://github.com/clutchski/coffeelint/commit/03b82446a3cc720b78b5df94d40e6daae6003ee5#commitcomment-13728928 for initial comment about this.