dimsuz
10/03/2022, 3:45 PMdetektDebug
task doesn't work on my CI, because each module gets a NO-SOURCE
status:
Task :feature:catalog:ui:detektDebug NO-SOURCE
But this works and detects issues when I run the same detektDebug
task locally.
Any ideas what might cause this?
~UPD: Can this happen because I run detekt tasks on CI before anything gets compiled?~Nope, doesn't work after compile either.
UPD2: Looks like I have found the reason. Our CI builds use gradle remote cache, so all lines which have NO-SOURCE
, have something like this before them:
Task :feature:catalog:ui:compileDebugKotlin FROM-CACHE
And this causes detekt to not run any checks (although there are some failing).
Is this a known bug? Can't seem to find it right away on github.Brais Gabin
10/03/2022, 8:15 PMdimsuz
10/03/2022, 8:30 PMdimsuz
10/04/2022, 4:15 PMexclude { it.file.absolutePath.contains("build") }
(because exclude("**/build/**")
doesn't work in type resolution mode)
and forgot to add surrounding /
and our build server built everything in /builds/projects/
🤦♂️