Skip to content

Commit

Permalink
Merge pull request #191 from Kardelio/main
Browse files Browse the repository at this point in the history
Added detekt into the project
  • Loading branch information
hieuwu committed Oct 5, 2023
2 parents 2508cc2 + 42816b5 commit d418163
Show file tree
Hide file tree
Showing 3 changed files with 731 additions and 1 deletion.
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
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 d418163

Please sign in to comment.