From 262c51336ccfa0ddb4522feee787de12c1e3d419 Mon Sep 17 00:00:00 2001 From: aktsay6 Date: Tue, 19 Jan 2021 17:52:22 +0300 Subject: [PATCH] feature/inline-classes(#698) ### What's done: * Fixed bugs --- .../cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt index cd240028b4..57f2c99485 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt @@ -42,8 +42,8 @@ class InlineClassesRule(private val configRule: List) : Rule("inlin private fun handleClasses(classPsi: KtClass) { // Fixme: for now we can't understand whether it extends class or interface if (hasValidProperties(classPsi) && - !classPsi.node.hasChildOfType(SUPER_TYPE_LIST) && - classPsi.node.getFirstChildWithType(MODIFIER_LIST)?.getChildren(null)?.all { it.elementType in goodModifiers } != false) { + !classPsi.node.hasChildOfType(SUPER_TYPE_LIST) && + classPsi.node.getFirstChildWithType(MODIFIER_LIST)?.getChildren(null)?.all { it.elementType in goodModifiers } != false) { INLINE_CLASS_CAN_BE_USED.warnAndFix(configRule, emitWarn, isFixMode, "class ${classPsi.name}", classPsi.node.startOffset, classPsi.node) { // Fixme: since it's an experimental feature we shouldn't do fixer }