diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter1/PackageNaming.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter1/PackageNaming.kt index e6d08ba967..998273d77b 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter1/PackageNaming.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter1/PackageNaming.kt @@ -82,6 +82,9 @@ class PackageNaming(configRules: List) : DiktatRule( } ?: if (visitorCounter.incrementAndGet() == 1) { log.error("Not able to find an external configuration for domain" + " name in the common configuration (is it missing in yml config?)") + } else { + @Suppress("RedundantUnitExpression") + Unit } }