Skip to content

Commit

Permalink
chore(detekt): add logging statements for better debugging and monito…
Browse files Browse the repository at this point in the history
…ring

The changes include adding logging statements using the logger.info() method to provide more visibility into the Detekt configuration process. This will help in debugging and monitoring the configuration steps and make it easier to identify any issues that may arise during the process.
  • Loading branch information
Adrien committed Jun 4, 2024
1 parent 289c468 commit f15d7ab
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ fun Project.configureDetekt() {
input.from(tasks.withType(Detekt::class.java).map { it.reports.sarif.outputLocation })
}
}

afterEvaluate {
logger.info("//////////////////////////////")
logger.info("Detekt")
configurations.matching { it.name == "detekt" }.all {

logger.info("In matching")
resolutionStrategy.eachDependency {
logger.info("In matching")
if (requested.group == "org.jetbrains.kotlin") {
logger.info("Rgit equested.group")
useVersion("1.9.24")
}
}
Expand Down

0 comments on commit f15d7ab

Please sign in to comment.