Skip to content

Commit

Permalink
Custom detekt configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hegyibalint committed Jul 26, 2024
1 parent db585ef commit 788f609
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gradle/detekt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
style:
ReturnCount:
max: 6 #
5 changes: 5 additions & 0 deletions lsp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ dependencies {
testImplementation(libs.mockk)
}

detekt {
// overwrite the config file's location
config.convention(project.isolated.rootProject.projectDirectory.file("gradle/detekt.yml"))
}

testing {
suites {
val test by getting(JvmTestSuite::class) {
Expand Down

0 comments on commit 788f609

Please sign in to comment.