We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11f5467 commit a90cf2dCopy full SHA for a90cf2d
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter6/classes/DataClassesRule.kt
@@ -97,14 +97,14 @@ class DataClassesRule(configRules: List<RulesConfig>) : DiktatRule(
97
.none { it.elementType in badModifiers } &&
98
classBody?.getAllChildrenWithType(FUN)
99
?.isEmpty()
100
- ?: false &&
+ ?: false &&
101
getFirstChildWithType(SUPER_TYPE_LIST) == null
102
}
103
return classBody?.getFirstChildWithType(FUN) == null &&
104
getFirstChildWithType(SUPER_TYPE_LIST) == null &&
105
// if there is any prop with logic in accessor then don't recommend to convert class to data class
106
classBody?.let(::areGoodProps)
107
- ?: true
+ ?: true
108
109
110
/**
0 commit comments