https://kotlinlang.org logo
#detekt
Title
# detekt
i

igor.wojda

02/13/2021, 2:11 PM
I noticed that detekt does not checks files in the
test
folder (Android). How cna I enable this?
b

Brais Gabin

02/13/2021, 2:12 PM
How do you run detekt?
s

Sebastian Schuberth

02/13/2021, 2:43 PM
i

igor.wojda

02/13/2021, 4:46 PM
I just run
./gradlew detekt
… It looks like I need a new
detektAll
task that includes Gradle build files and tests
OK, solved by adding these fils to the config. Thx
Copy code
detekt {
        config = files("$rootDir/detekt.yml")

        parallel = true


        input = files(
            "$rootDir/buildSrc",
            "$rootDir/build.gradle.kts",
            "$rootDir/settings.gradle.kts",
            "src/main/kotlin",
            "src/test/kotlin"
        )
    }
5 Views