From 39387e46c8864bb82500fa5ba572b20f6b37aac7 Mon Sep 17 00:00:00 2001 From: aktsay6 Date: Mon, 15 Feb 2021 11:25:48 +0300 Subject: [PATCH] bugfix/newlinesrule(#748) ### What's done: * Fixed bug --- .../org/cqfn/diktat/ruleset/rules/chapter3/TrailingCommaRule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/TrailingCommaRule.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/TrailingCommaRule.kt index 6e288e23af..c1061ff8cc 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/TrailingCommaRule.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/TrailingCommaRule.kt @@ -53,7 +53,7 @@ class TrailingCommaRule(configRules: List) : 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()) {