From c41e24923225fc50de514753064b27c671b94309 Mon Sep 17 00:00:00 2001 From: uzzu Date: Sun, 17 Dec 2023 16:22:56 +0900 Subject: [PATCH] fix detekt merged report name --- .github/workflows/pull-request.yml | 2 +- build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c74a7c2..233dd31 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -33,7 +33,7 @@ jobs: - name: Run reviewdog if: always() run: | - find . -type f -name "ktlint*Check.xml" -exec sh -c "cat {} | reviewdog -f=checkstyle -name='ktlint' -reporter=github-pr-review" \; + cat build/reports/detekt/detekt-merged-report.xml | reviewdog -f=checkstyle -name="detekt" -reporter="github-check" -level="warning" -filter-mode="nofilter" -fail-on-error - name: Gradle publish to mavenLocal run: | ./gradlew publishToMavenLocal diff --git a/build.gradle.kts b/build.gradle.kts index e9d2f9b..3448e4c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -46,7 +46,7 @@ fun Project.detektConfigurationShared( } val reportMerge by tasks.registering(ReportMergeTask::class) { - output.set(rootProject.layout.buildDirectory.file("reports/detekt/merge.xml")) + output.set(rootProject.layout.buildDirectory.file("reports/detekt/detekt-merged-report.xml")) } tasks.withType().configureEach {