Skip to content

Commit a5e0847

Browse files
committed
Adding detekt config, tweaking setup of compiler options to use newer DSL
1 parent 7cbbcd1 commit a5e0847

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.detekt-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
style:
2+
MaxLineLength:
3+
maxLineLength: 140
4+
5+
processors:
6+
active: true
7+
exclude:
8+
- 'DetektProgressListener'
9+
- 'FunctionCountProcessor'
10+
- 'PropertyCountProcessor'
11+
- 'ClassCountProcessor'
12+
- 'PackageCountProcessor'
13+
- 'KtFileCountProcessor'
14+
15+
console-reports:
16+
active: true
17+
exclude:
18+
- 'ProjectStatisticsReport'
19+
- 'ComplexityReport'
20+
- 'NotificationReport'
21+
- 'FindingsReport'
22+
- 'BuildFailureReport'

build-logic/src/main/kotlin/kotlin-conventions.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,8 @@ kotlin {
3232
languageVersion.set(JavaLanguageVersion.of(21))
3333
}
3434

35-
target {
36-
compilations.configureEach {
37-
compilerOptions.configure {
38-
freeCompilerArgs.addAll(listOf("-Xcontext-receivers"))
39-
}
40-
}
35+
compilerOptions {
36+
freeCompilerArgs.add("-Xcontext-receivers")
4137
}
4238
}
4339

src/test/kotest.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kotest.framework.discovery.jar.scan.disable=true
2+
kotest.framework.classpath.scanning.config.disable=true
3+
kotest.framework.classpath.scanning.autoscan.disable=true

0 commit comments

Comments
 (0)