Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/wrong_fix_in_AVOID_NULL_CHECK
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyavertolet authored Oct 27, 2022
2 parents 62463ae + 5ade536 commit 46fe6b3
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,7 @@ data class CommonConfiguration(private val configuration: Map<String, String>?)
* Get source directories from configuration
*/
val srcDirectories: List<String> 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 {
Expand Down

0 comments on commit 46fe6b3

Please sign in to comment.