Skip to content

Commit

Permalink
Remove unused source parameter from detekt extension
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Mar 7, 2024
1 parent 5944852 commit 1de0d01
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
Expand Up @@ -14,7 +14,6 @@ class DetektTaskGroovyDslSpec {
toolVersion = "1.0.0.RC8"
ignoreFailures = true
failOnSeverity = io.gitlab.arturbosch.detekt.extensions.FailOnSeverity.Info
source.setFrom(file("src/main/kotlin"))
baseline = file("path/to/baseline.xml")
basePath = projectDir
config.setFrom("config/detekt/detekt.yml")
Expand Down
Expand Up @@ -192,18 +192,8 @@ class DetektTaskMultiModuleSpec {
addSubmodule("child2", 4)
}

val detektConfig: String = """
detekt {
source.setFrom(
"${"$"}projectDir/src",
"${"$"}projectDir/child1/src",
"${"$"}projectDir/child2/src"
)
}
""".trimIndent()
val gradleRunner = DslTestBuilder.kotlin()
.withProjectLayout(projectLayout)
.withDetektConfig(detektConfig)
.build()

gradleRunner.runDetektTaskAndCheckResult { result ->
Expand Down
Expand Up @@ -28,12 +28,6 @@ class DetektBasePlugin : Plugin<Project> {
toolVersion.convention(loadDetektVersion(DetektExtension::class.java.classLoader))
ignoreFailures.convention(DEFAULT_IGNORE_FAILURES)
failOnSeverity.convention(DEFAULT_FAIL_ON_SEVERITY)
source.setFrom(
DEFAULT_SRC_DIR_JAVA,
DEFAULT_TEST_SRC_DIR_JAVA,
DEFAULT_SRC_DIR_KOTLIN,
DEFAULT_TEST_SRC_DIR_KOTLIN,
)
baseline.convention(project.layout.projectDirectory.file("detekt-baseline.xml"))
enableCompilerPlugin.convention(DEFAULT_COMPILER_PLUGIN_ENABLED)
debug.convention(DEFAULT_DEBUG_VALUE)
Expand Down
Expand Up @@ -20,8 +20,6 @@ interface DetektExtension {

val reportsDir: DirectoryProperty

val source: ConfigurableFileCollection

val baseline: RegularFileProperty

val basePath: DirectoryProperty
Expand Down

0 comments on commit 1de0d01

Please sign in to comment.