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
class ExampleClass {
var var1 = 1
fun bar() {
}
var var2 = 2
init {
}
companion object {
}
}
Context
Sometimes ClassOrdering Rule print you incorrect messages. For example in code above it types "ClassOrdering: method bar() should be declared before companion object." despite bar() already declared before companion object. The correct error here is "method bar() should be declared after property declarations and initializer blocks"
Your Environment
Version of detekt used: 1.23.6
Version of Gradle used (if applicable):
Gradle scan link (add --scan option when running the gradle task):
Operating System and version:
Link to your project (if it's a public repository):
The text was updated successfully, but these errors were encountered:
Expected Behavior
Observed Behavior
Steps to Reproduce
Example class that can triggers this behavior
Context
Sometimes ClassOrdering Rule print you incorrect messages. For example in code above it types "ClassOrdering: method
bar()
should be declared before companion object." despite bar() already declared before companion object. The correct error here is "methodbar()
should be declared after property declarations and initializer blocks"Your Environment
--scan
option when running the gradle task):The text was updated successfully, but these errors were encountered: