Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 139cd388 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '0000-s-add-detekt' into 'main'

Added Detekt gradle task and CI task

See merge request !383
parents f07a72e3 961f50ef
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -124,9 +124,11 @@ lintRelease:
      when: always
  script:
    - ./gradlew lintRelease
    - ./gradlew detekt
  artifacts:
    paths:
      - app/build/reports/
      - build/reports/

ktlintRelease:
  extends: .lintReleaseDefault
+23 −1
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ plugins {
    id 'com.google.dagger.hilt.android' version '2.44' apply false
    id "org.jetbrains.kotlin.plugin.allopen" version "1.8.0"
    id 'androidx.navigation.safeargs' version '2.5.3' apply false
    id 'io.gitlab.arturbosch.detekt' version '1.23.1'
}

allprojects {
@@ -16,6 +17,27 @@ allprojects {
    }
}

subprojects {
    detekt {
        toolVersion = "1.23.1"

        source = files(
                "src/main/java"
        )

        config.setFrom("detekt.yml")

        parallel = false
        buildUponDefaultConfig = true
        allRules = false
        disableDefaultRuleSets = false
        debug = false
        ignoreFailures = true
        basePath = projectDir
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

detekt.yml

0 → 100644
+6 −0
Original line number Diff line number Diff line
naming:
  ConstructorParameterNaming:
    active: false
  VariableNaming:
    active: false