diff --git a/gradle/detekt.yml b/gradle/detekt.yml new file mode 100644 index 0000000..e10b591 --- /dev/null +++ b/gradle/detekt.yml @@ -0,0 +1,3 @@ +style: + ReturnCount: + max: 6 # \ No newline at end of file diff --git a/lsp/build.gradle.kts b/lsp/build.gradle.kts index 6af60d0..a626785 100644 --- a/lsp/build.gradle.kts +++ b/lsp/build.gradle.kts @@ -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) {