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
package com.chaozhang.testktlint
class LongLongLongLongLongLongLongLongLongLongLongLongLongLongName
class UsingPropertyDelegate {
val a: LongLongLongLongLongLongLongLongLongLongLongLongLongLongName
by lazy { LongLongLongLongLongLongLongLongLongLongLongLongLongLongName() }
}
Should pass the indentation check as this is using the recommended code style setting in Android Studio.
And also this makes sense, because by is a continuation.
Observed Behavior
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/PropertyDelegate.kt:7:1: Unexpected indentation (8) (should be 4)
And the code would be auto corrected to
class UsingPropertyDelegate {
val a: LongLongLongLongLongLongLongLongLongLongLongLongLongLongName
by lazy { LongLongLongLongLongLongLongLongLongLongLongLongLongLongName() }
}
Steps to Reproduce
Copy-paste the snippet and run ktlint.
Your Environment
Version of ktlint used: 0.39.0
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): custom gradle task
Expected Behavior
Should pass the indentation check as this is using the recommended code style setting in Android Studio.
And also this makes sense, because
by
is a continuation.Observed Behavior
And the code would be auto corrected to
Steps to Reproduce
Copy-paste the snippet and run ktlint.
Your Environment
The text was updated successfully, but these errors were encountered: