Skip to content

Commit

Permalink
Testing for detekt/detekt#6331
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Aug 1, 2023
1 parent 16c84f2 commit d3019d7
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
16 changes: 16 additions & 0 deletions detekt/sarif-github-previews/.github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/checkout@v3
with:
path: detekt
repository: 3flex/detekt
ref: 4165-fix

# Workaround for
# > Build file '...\sarif-github-previews\detekt\build.gradle.kts' line: 6
# > Plugin [id: 'releasing'] was not found in any of the following sources
- run: git apply ${{ github.workspace }}/.github/workflows/includedBuild-fix.patch
working-directory: detekt
# Ignore the following error, if it doesn't apply, it's very likely already applied.
# > error: patch failed: settings.gradle.kts:2
# > error: settings.gradle.kts: patch does not apply
continue-on-error: true

- run: ./gradlew detekt

- uses: actions/upload-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Index: settings.gradle.kts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/settings.gradle.kts b/settings.gradle.kts
--- a/settings.gradle.kts (revision c50ed690da3794bf5e5a3bbbe56e15533f7cd0c8)
+++ b/settings.gradle.kts (date 1690896124466)
@@ -2,8 +2,10 @@

rootProject.name = "detekt"

-includeBuild("build-logic")
-includeBuild("detekt-gradle-plugin")
+pluginManagement {
+ includeBuild("build-logic")
+ includeBuild("detekt-gradle-plugin")
+}

include("code-coverage-report")
include("detekt-api")
11 changes: 11 additions & 0 deletions detekt/sarif-github-previews/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
pluginManagement {
includeBuild("detekt/detekt-gradle-plugin")
}

plugins {
id("io.gitlab.arturbosch.detekt") version "1.23.1" apply false
}

includeBuild("detekt") {
dependencySubstitution {
substitute(module("io.gitlab.arturbosch.detekt:detekt-cli"))
.using(project(":detekt-cli"))
}
}

dependencyResolutionManagement {
repositories {
mavenCentral()
Expand Down

0 comments on commit d3019d7

Please sign in to comment.