Skip to content

Commit

Permalink
refactor: (#271) dms-application detekt 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut committed Feb 26, 2023
1 parent 3b9ad3a commit 063dfc5
Show file tree
Hide file tree
Showing 543 changed files with 4,295 additions and 1,230 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ jobs:
arguments: |
build
--build-cache
--no-daemon
--no-daemon
- name: Run Detekt
run: ./gradlew detekt
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
kotlin("jvm") version PluginVersions.JVM_VERSION
id("io.gitlab.arturbosch.detekt").version(PluginVersions.DETEKT_VERSION)
}

subprojects {
Expand All @@ -13,6 +14,18 @@ subprojects {
version = PluginVersions.KAPT_VERSION
}

apply {
plugin("io.gitlab.arturbosch.detekt")
version = PluginVersions.DETEKT_VERSION
}

detekt {
toolVersion = PluginVersions.DETEKT_VERSION
buildUponDefaultConfig = true
autoCorrect = true
config = files("config/detekt/detekt.yml")
}

dependencies {

// kotlin
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/PluginVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ object PluginVersions {
const val KAPT_VERSION = "1.7.10"
const val ALLOPEN_VERSION = "1.6.21"
const val MOCKK_VERSION = "1.13.2"
const val DETEKT_VERSION = "1.21.0"
}
Loading

0 comments on commit 063dfc5

Please sign in to comment.