mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-10-01 02:17:35 +00:00
Create detekt profiles for each project
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
def detektAggregateReport = "$rootDir/reports/detekt-report.xml"
|
||||
|
||||
gradle.projectsEvaluated {
|
||||
detekt {
|
||||
version = detektVersion
|
||||
|
||||
@@ -7,9 +8,14 @@ detekt {
|
||||
output = file("$buildDir/reports")
|
||||
outputName = "detekt-report"
|
||||
config = file("$rootDir/gradle/config/detekt.yml")
|
||||
input = file(".")
|
||||
parallel = true
|
||||
}
|
||||
|
||||
subprojects.findAll { it.pluginManager.hasPlugin('kotlin') }.forEach { proj ->
|
||||
profile(proj.name) {
|
||||
input = proj.sourceSets.main.kotlin
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -23,3 +29,4 @@ sonarqube {
|
||||
}
|
||||
|
||||
tasks["sonarqube"].dependsOn(detektCheck)
|
||||
}
|
||||
Reference in New Issue
Block a user