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 19, 2021
1 parent 82cd263 commit f866e6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TypeAliasRule(private val configRules: List<RulesConfig>) : Rule("type-ali
if (node.elementType == TYPE_REFERENCE && node
.parents()
.map { it.elementType }
.none { it == SUPER_TYPE_LIST || it == TYPEALIAS}) {
.none { it == SUPER_TYPE_LIST || it == TYPEALIAS }) {
checkTypeReference(node, TypeAliasConfiguration(configRules.getRuleConfig(TYPE_ALIAS)?.configuration ?: emptyMap()))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class UselessSupertype(private val configRules: List<RulesConfig>) : Rule("usele
it.getIdentifierName()!!.text in methodsName
}
overrideFunctions.forEach {
functionNameMap.compute(it.getIdentifierName()!!.text) { _, oldValue -> (oldValue ?: 0) + 1}
functionNameMap.compute(it.getIdentifierName()!!.text) { _, oldValue -> (oldValue ?: 0) + 1 }
}
}
return functionNameMap.toMap()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class KotlinParser {
}
} // I don't really understand what's going on here, but thanks to this, you can use this node in the future
val project = KotlinCoreEnvironment.createForProduction(
Disposable {},
Disposable { },
compilerConfiguration,
EnvironmentConfigFiles.JVM_CONFIG_FILES
).project // create project
Expand Down

0 comments on commit f866e6f

Please sign in to comment.