From b0531872fcd5d7b58f7405016a048aa819161589 Mon Sep 17 00:00:00 2001 From: Vfrolov Date: Thu, 27 Oct 2022 13:22:31 +0300 Subject: [PATCH] Removed log for checking name of srcDirectories ### What's done: * removed log for checking name of srcDirectories Closes #1517 --- .../cqfn/diktat/common/config/rules/RulesConfigReader.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt b/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt index 78eee8f29d..d4db28b013 100644 --- a/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt +++ b/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt @@ -162,11 +162,7 @@ data class CommonConfiguration(private val configuration: Map?) * Get source directories from configuration */ val srcDirectories: List by lazy { - val srcDirs = configuration?.get("srcDirectories")?.split(",")?.map { it.trim() } ?: listOf("main") - if (srcDirs.any { !it.lowercase(Locale.getDefault()).endsWith("main") }) { - log.error("source directory names should end with `main`") - } - srcDirs + configuration?.get("srcDirectories")?.split(",")?.map { it.trim() } ?: listOf("main") } companion object {