Skip to content

Commit

Permalink
Upgrade detekt and reduce detected issues (less impact on this old co…
Browse files Browse the repository at this point in the history
…de).
  • Loading branch information
bmarty committed Nov 5, 2024
1 parent 350fa20 commit 6d7e744
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ plugins {
// ktlint Plugin
id "org.jlleitschuh.gradle.ktlint" version "11.3.2"
// Detekt
id "io.gitlab.arturbosch.detekt" version "1.22.0"
id "io.gitlab.arturbosch.detekt" version "1.23.7"
// Ksp
id "com.google.devtools.ksp" version "1.9.24-1.0.20"

Expand Down
2 changes: 2 additions & 0 deletions dependencies_groups.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ ext.groups = [
'org.jacoco',
'org.java-websocket',
'org.jcodec',
'org.jcommander',
'org.jetbrains',
'org.jetbrains.dokka',
'org.jetbrains.intellij.deps',
Expand All @@ -229,6 +230,7 @@ ext.groups = [
'org.reactivestreams',
'org.robolectric',
'org.slf4j',
'org.snakeyaml',
'org.sonatype.oss',
'org.testng',
'org.threeten',
Expand Down
6 changes: 5 additions & 1 deletion tools/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ style:
active: false
UseCheckOrError:
active: false
UnusedPrivateProperty:
active: false

empty-blocks:
EmptyFunctionBlock:
Expand Down Expand Up @@ -75,6 +77,8 @@ naming:
performance:
SpreadOperator:
active: false
ForEachOnRange:
active: false

# Note: all rules for `comments` are disabled by default, but I put them here to be aware of their existence
comments:
Expand All @@ -91,7 +95,7 @@ comments:
EndOfSentenceFormat:
active: true
OutdatedDocumentation:
active: true
active: false
UndocumentedPublicClass:
active: false
UndocumentedPublicFunction:
Expand Down

0 comments on commit 6d7e744

Please sign in to comment.