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
Preferably ViewModelWithALongLongLongLongLongLongLongLongName3 should pass ktlint and is compliant with the recommended code style in Android Studio:
package com.chaozhang.testktlint
class GenericTypeWithALongLongALong1
class GenericTypeWithALongLongALong2
class GenericTypeWithALongLongALong3
class ViewModelWithALongLongLongLongLongLongLongLongName<
A : GenericTypeWithALongLongALong1,
B : GenericTypeWithALongLongALong2,
C : GenericTypeWithALongLongALong3
> constructor(
parameterWithLongLongLongLongLongLongLongLongNameA: A,
parameterWithLongLongLongLongLongLongLongLongNameB: B,
parameterWithLongLongLongLongLongLongLongLongNameC: C
)
class ViewModelWithALongLongLongLongLongLongLongLongName2<
A : GenericTypeWithALongLongALong1,
B : GenericTypeWithALongLongALong2,
C : GenericTypeWithALongLongALong3
> constructor(
parameterWithLongLongLongLongLongLongLongLongNameA: A,
parameterWithLongLongLongLongLongLongLongLongNameB: B,
parameterWithLongLongLongLongLongLongLongLongNameC: C
)
class ViewModelWithALongLongLongLongLongLongLongLongName3<
A : GenericTypeWithALongLongALong1,
B : GenericTypeWithALongLongALong2,
C : GenericTypeWithALongLongALong3
> constructor(
parameterWithLongLongLongLongLongLongLongLongNameA: A,
parameterWithLongLongLongLongLongLongLongLongNameB: B,
parameterWithLongLongLongLongLongLongLongLongNameC: C
)
Observed Behavior
Violations detected in ViewModelWithALongLongLongLongLongLongLongLongName, ViewModelWithALongLongLongLongLongLongLongLongName2 and ViewModelWithALongLongLongLongLongLongLongLongName3.
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:13:1: Unexpected indentation (0) (should be 4)
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:24:1: Unexpected indentation (8) (should be 4)
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:25:1: Unexpected indentation (8) (should be 4)
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:26:1: Unexpected indentation (8) (should be 4)
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:27:1: Unexpected indentation (4) (should be 0)
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:34:5: Unexpected indentation (expected 8, actual 4)
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:35:5: Unexpected indentation (expected 8, actual 4)
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:36:5: Unexpected indentation (expected 8, actual 4)
/Users/cazhang/TestKtLint/app/src/main/java/com/chaozhang/testktlint/ParameterWithGeneric.kt:37:1: Unexpected indentation (expected 4, actual 0)
Steps to Reproduce
Copy-paste the snippet and run ktlint.
Your Environment
Version of ktlint used: 0.39.0 (This issue happens starting 0.37.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
Preferably
ViewModelWithALongLongLongLongLongLongLongLongName3
should pass ktlint and is compliant with the recommended code style in Android Studio:Observed Behavior
Violations detected in
ViewModelWithALongLongLongLongLongLongLongLongName
,ViewModelWithALongLongLongLongLongLongLongLongName2
andViewModelWithALongLongLongLongLongLongLongLongName3
.Steps to Reproduce
Copy-paste the snippet and run ktlint.
Your Environment
The text was updated successfully, but these errors were encountered: