diff --git a/.github/workflows/gradle-build-with-detekt.yml b/.github/workflows/gradle-build-with-detekt.yml deleted file mode 100644 index 438c471..0000000 --- a/.github/workflows/gradle-build-with-detekt.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Gradle Build With Detekt - -on: [workflow_dispatch] - -jobs: - build: - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v3.0.0 - - name: Set up JDK 11 - uses: actions/setup-java@v3.0.0 - with: - java-version: 11 - distribution: liberica - - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v1.0.4 - - uses: gradle/gradle-build-action@v2.1.5 - with: - arguments: build --stacktrace -PrunDetekt - diff --git a/build.gradle.kts b/build.gradle.kts index 7964720..39dac3c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,7 +15,6 @@ plugins { id("org.springframework.boot") version "2.7.3" apply false id("io.spring.dependency-management") version "1.0.13.RELEASE" apply false id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion apply false - id("io.gitlab.arturbosch.detekt") version "1.21.0" id("org.siouan.frontend-jdk11") version "6.0.0" } @@ -30,10 +29,6 @@ fun printOutput(output: Any): Task { } } -val detektReportMerge by tasks.registering(io.gitlab.arturbosch.detekt.report.ReportMergeTask::class) { - output.set(rootProject.buildDir.resolve("reports/detekt/merge.sarif")) -} - allprojects { repositories { mavenCentral() @@ -53,27 +48,11 @@ val frontendSuffix = "Frontend" val server = "Server" configure(subprojects.filter { frontendSuffix !in it.name }) { - apply() - apply { plugin("java") plugin("kotlin") } - configure { - config = rootProject.files("detekt.yml") - buildUponDefaultConfig = true - debug = true - } - - tasks.withType { - finalizedBy(detektReportMerge) - reports.sarif.required.set(true) - detektReportMerge.get().input.from(sarifReportFile) - } - - tasks.getByPath("detekt").onlyIf { project.hasProperty("runDetekt") } - dependencies { implementation("org.jetbrains.academy.test.system:kotlin-test-system:1.0.9") } diff --git a/detekt.yml b/detekt.yml deleted file mode 100644 index e9034e6..0000000 --- a/detekt.yml +++ /dev/null @@ -1,34 +0,0 @@ -# buildUponDefaultConfig is active; add only the rules that require explicit configuration here -potential-bugs: - Deprecation: - active: true - -style: - MaxLineLength: - active: true - maxLineLength: 180 - # wildcards are used all over the project - WildcardImport: - active: false - ReturnCount: - max: 3 - MagicNumber: - active: false - UnusedPrivateMember: - active: false - -complexity: - TooManyFunctions: - active: true - thresholdInFiles: 20 - -exceptions: - active: true - InstanceOfCheckForException: - active: false - -naming: - MatchingDeclarationName: - active: false - PackageNaming: - active: false \ No newline at end of file