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
classCoolThing (
valthing1:String,
valthing2:String
) // this is a comment
{
// ...
}
Expected Behavior
When running the ktlint formatter, output should be:
classCoolThing (
valthing1:String,
valthing2:String
) {
// this is a comment// ...
}
Observed Behavior
Actual output (0.36.0) is a class that no longer compiles:
classCoolThing (
valthing1:String,
valthing2:String
) // this is a comment {
// ...
}
Your Environment
Version of ktlint used: 0.36.0
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): org.jlleitschuh.gradle:ktlint-gradle:9.2.1
Version of Gradle used (if applicable): 5.6
Operating System and version: macOS
The text was updated successfully, but these errors were encountered:
@scottdweber could you do me a favor and just run lint (not format) with --verbose to see which rule it is that's making that change? (I'm unsure how to pass that flag with the plugin, but I assume it's supported).
Given a class that is defined like this:
Expected Behavior
When running the ktlint formatter, output should be:
Observed Behavior
Actual output (0.36.0) is a class that no longer compiles:
Your Environment
0.36.0
org.jlleitschuh.gradle:ktlint-gradle:9.2.1
5.6
macOS
The text was updated successfully, but these errors were encountered: