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 5d41510 commit f4d0ca4
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +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 {
val goodModifiers = listOf(PUBLIC_KEYWORD, PRIVATE_KEYWORD, FINAL_KEYWORD, PROTECTED_KEYWORD, INTERNAL_KEYWORD)
Expand Down

0 comments on commit f4d0ca4

Please sign in to comment.