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 00e135b commit 5d41510
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ class InlineClassesRule(private val configRule: List<RulesConfig>) : Rule("inlin
}

private fun isExtendingClass(node: ASTNode): Boolean =
node.getFirstChildWithType(SUPER_TYPE_LIST)?.children()?.any { it.hasChildOfType(CONSTRUCTOR_CALLEE) } ?: false
node
.getFirstChildWithType(SUPER_TYPE_LIST)
?.children()
?.any { it.hasChildOfType(CONSTRUCTOR_CALLEE) }
?: false


companion object {
Expand Down

0 comments on commit 5d41510

Please sign in to comment.