-
Notifications
You must be signed in to change notification settings - Fork 508
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
Needless blank line(s) does not get triggered when there is more than one blank line #108
Comments
$ printf "package com.foo.bar\n\nclass Test\n\n\n" > T.kt
$ ktlint --version
0.12.1
$ ktlint --relative T.kt
T.kt:5:1: Needless blank line(s) |
Everything seems to be in order. |
When I'm running it through the gradle plugin I still see no errors. This is my config file:
|
@vanniktech same thing with |
The following does get triggered for me: }
While the one below won't be. }
Could this be an off by one error? |
…hen exactly 2 blank lines are present) (#108)
@vanniktech Thank you. It was a combination of 0a262d5 and 3b9bb1b. Fixed. |
Awesome. Thank you :) |
Test case:
The text was updated successfully, but these errors were encountered: