Skip to content

Commit

Permalink
Added detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
Kardelio committed Oct 5, 2023
1 parent 2508cc2 commit 38b70f6
Show file tree
Hide file tree
Showing 5 changed files with 744 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- name: Check Detekt
run: chmod +x .github/scripts/gradlew_recursive.sh ; .github/scripts/gradlew_recursive.sh detekt
- name: Build project
run: chmod +x .github/scripts/gradlew_recursive.sh ; .github/scripts/gradlew_recursive.sh assembleDebug
- name: Zip artifacts
Expand Down
10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
alias libs.plugins.spotless
alias libs.plugins.navigation.safeargs
id "org.jetbrains.kotlin.plugin.serialization" version "1.7.0"

id "io.gitlab.arturbosch.detekt" version "1.22.0"
}

android {
Expand Down Expand Up @@ -135,6 +135,11 @@ task wrapper(type: Wrapper) {
gradleVersion = '7.2'
}

detekt {
config = files("${project.rootDir.absolutePath}/config/detekt/detekt.yml")
buildUponDefaultConfig = true
}

ktlint {
// android.set(true)
// reporters {
Expand Down
Loading

0 comments on commit 38b70f6

Please sign in to comment.