diff --git a/.github/workflows/diktat_snapshot.yml b/.github/workflows/diktat_snapshot.yml index 448225389a..8477cfe0bc 100644 --- a/.github/workflows/diktat_snapshot.yml +++ b/.github/workflows/diktat_snapshot.yml @@ -57,6 +57,10 @@ jobs: # FixMe: return after 2.0.0 # -x diktatCheck + - name: 'Copy files and set flags' + run: | + echo "DIKTAT_SNAPSHOT=1" >> $GITHUB_ENV + mv gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/diktat-convention-configuration.gradle.txt gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/diktat-convention-configuration.gradle.kts - name: 'Override ' run: | diff --git a/gradle/plugins/build.gradle.kts b/gradle/plugins/build.gradle.kts index 07b3ca911c..f042f4674d 100644 --- a/gradle/plugins/build.gradle.kts +++ b/gradle/plugins/build.gradle.kts @@ -16,6 +16,7 @@ repositories { gradlePluginPortal() } +@Suppress("COMMENTED_OUT_CODE", "WRONG_INDENTATION") dependencies { // workaround https://github.com/gradle/gradle/issues/15383 implementation(files(project.libs.javaClass.superclass.protectionDomain.codeSource.location)) diff --git a/gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/code-quality-convention.gradle.kts b/gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/code-quality-convention.gradle.kts index c08fad2fdd..520fda1cbd 100644 --- a/gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/code-quality-convention.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/code-quality-convention.gradle.kts @@ -1,5 +1,6 @@ package com.saveourtool.diktat.buildutils +@Suppress("AVOID_NULL_CHECKS") plugins { id("com.saveourtool.diktat.buildutils.detekt-convention-configuration") // FixMe: remove after 2.0.0 diff --git a/gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/diktat-convention-configuration.gradle.txt b/gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/diktat-convention-configuration.gradle.txt index 827cbc60ee..af84f299f7 100644 --- a/gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/diktat-convention-configuration.gradle.txt +++ b/gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/diktat-convention-configuration.gradle.txt @@ -1,6 +1,5 @@ package com.saveourtool.diktat.buildutils - plugins { id("com.saveourtool.diktat.diktat-gradle-plugin") }