Skip to content

Commit

Permalink
feature/inline-classes(#698)
Browse files Browse the repository at this point in the history
### What's done:
  * Fixed bugs
  • Loading branch information
aktsay6 committed Jan 21, 2021
1 parent ca994dd commit 79d7a2c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class InlineClassesRule(private val configRule: List<RulesConfig>) : 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) {
Expand Down

0 comments on commit 79d7a2c

Please sign in to comment.