You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 0.39.0 (or earlier) introduced unwanted newline before annotated primary constructor (see #970). While that is fixed, ktlint format doesn't remove the extra line and ktlint check doesn't report it as an issue. IJ reformat code option removes the line by default but ktlint doesn't.
Expected Behavior
Given code:
class A
constructor(a: Int)
check should report issue and format should remove empty line
Observed Behavior
check doesn't report the issue and format doesn't change the file.
Steps to Reproduce
Given above
Your Environment
Version of ktlint used: 0.40.0
Version of Gradle used (if applicable): 6.6.1
The text was updated successfully, but these errors were encountered:
marco89nish
changed the title
Extra line before annotated primary constructor is not reported and formated-out
Empty line before primary constructor is not reported and formated-out
Dec 10, 2020
Version 0.39.0 (or earlier) introduced unwanted newline before annotated primary constructor (see #970). While that is fixed, ktlint format doesn't remove the extra line and ktlint check doesn't report it as an issue. IJ reformat code option removes the line by default but ktlint doesn't.
Expected Behavior
Given code:
check should report issue and format should remove empty line
Observed Behavior
check doesn't report the issue and format doesn't change the file.
Steps to Reproduce
Given above
Your Environment
The text was updated successfully, but these errors were encountered: