From 79d7a2ccd36ca2b69ab32c6f1e244309fe4dba00 Mon Sep 17 00:00:00 2001 From: aktsay6 Date: Thu, 21 Jan 2021 11:08:47 +0300 Subject: [PATCH] feature/inline-classes(#698) ### What's done: * Fixed bugs --- .../org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt | 1 + 1 file changed, 1 insertion(+) 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 803de3cf01..840c38437b 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 @@ -43,6 +43,7 @@ class InlineClassesRule(private val configRule: List) : Rule("inlin } private fun handleClasses(classPsi: KtClass) { + // Fixme: In Kotlin 1.4.30 inline classes may be used with internal constructors. When it will be released need to check it if (hasValidProperties(classPsi) && !isExtendingClass(classPsi.node) && classPsi.node.getFirstChildWithType(MODIFIER_LIST)?.getChildren(null)?.all { it.elementType in goodModifiers } != false) {