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 {