Skip to content

Commit

Permalink
bugfix/newlinesrule(#748)
Browse files Browse the repository at this point in the history
### What's done:
  * Fixed bug
  • Loading branch information
aktsay6 committed Feb 15, 2021
1 parent 776027f commit 39387e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TrailingCommaRule(configRules: List<RulesConfig>) : DiktatRule(
"trailing-comma",
configRules,
listOf(TRAILING_COMMA)) {
private val commonConfig by configRules.getCommonConfiguration()
private val commonConfig = configRules.getCommonConfiguration()
private val trailingConfig = this.configRules.getRuleConfig(TRAILING_COMMA)?.configuration ?: emptyMap()
private val configuration by lazy {
if (trailingConfig.isEmpty()) {
Expand Down

0 comments on commit 39387e4

Please sign in to comment.