Skip to content

Commit 6d7e744

Browse files
committed
Upgrade detekt and reduce detected issues (less impact on this old code).
1 parent 350fa20 commit 6d7e744

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ plugins {
4343
// ktlint Plugin
4444
id "org.jlleitschuh.gradle.ktlint" version "11.3.2"
4545
// Detekt
46-
id "io.gitlab.arturbosch.detekt" version "1.22.0"
46+
id "io.gitlab.arturbosch.detekt" version "1.23.7"
4747
// Ksp
4848
id "com.google.devtools.ksp" version "1.9.24-1.0.20"
4949

dependencies_groups.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ ext.groups = [
203203
'org.jacoco',
204204
'org.java-websocket',
205205
'org.jcodec',
206+
'org.jcommander',
206207
'org.jetbrains',
207208
'org.jetbrains.dokka',
208209
'org.jetbrains.intellij.deps',
@@ -229,6 +230,7 @@ ext.groups = [
229230
'org.reactivestreams',
230231
'org.robolectric',
231232
'org.slf4j',
233+
'org.snakeyaml',
232234
'org.sonatype.oss',
233235
'org.testng',
234236
'org.threeten',

tools/detekt/detekt.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ style:
2525
active: false
2626
UseCheckOrError:
2727
active: false
28+
UnusedPrivateProperty:
29+
active: false
2830

2931
empty-blocks:
3032
EmptyFunctionBlock:
@@ -75,6 +77,8 @@ naming:
7577
performance:
7678
SpreadOperator:
7779
active: false
80+
ForEachOnRange:
81+
active: false
7882

7983
# Note: all rules for `comments` are disabled by default, but I put them here to be aware of their existence
8084
comments:
@@ -91,7 +95,7 @@ comments:
9195
EndOfSentenceFormat:
9296
active: true
9397
OutdatedDocumentation:
94-
active: true
98+
active: false
9599
UndocumentedPublicClass:
96100
active: false
97101
UndocumentedPublicFunction:

0 commit comments

Comments
 (0)