clutchski/coffeelint

newline_after_classes is still acting a bit weird

Opened this issue · 4 comments

swang commented

See 03b8244#commitcomment-13728928 for initial comment about this.

I put the whole file in a gist >>

https://gist.github.com/startswithaj/ef410b67bcd80b9a272f

screen shot 2015-10-13 at 5 24 17 pm

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.