Detekt scope #5597
Answered
by
schalkms
IvanSanchez-uam
asked this question in
Q&A
Detekt scope
#5597
-
In an android project there are some kind of directories , for instance there are (main, test, debug). Do you happen to know if detekt only check the .kt files under main? |
Beta Was this translation helpful? Give feedback.
Answered by
schalkms
Dec 2, 2022
Replies: 1 comment
-
The checked source directories depend on your configuration, for instance in the Gradle task. detekt {
// The directories where detekt looks for source files.
// Defaults to `files("src/main/java", "src/test/java", "src/main/kotlin", "src/test/kotlin")`.
source = files(
"src/main/kotlin",
"gensrc/main/kotlin"
)
...
} Source: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
schalkms
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The checked source directories depend on your configuration, for instance in the Gradle task.
Source:
https://detekt.dev/docs/gettingstarted/gradle#options-for-detekt-configuration-closure