Upgrade detekt and reduce detected issues (less impact on this old code).

This commit is contained in:
Benoit Marty 2024-11-05 09:46:27 +01:00
parent 350fa20518
commit 6d7e7446ae
3 changed files with 8 additions and 2 deletions

View File

@ -43,7 +43,7 @@ plugins {
// ktlint Plugin // ktlint Plugin
id "org.jlleitschuh.gradle.ktlint" version "11.3.2" id "org.jlleitschuh.gradle.ktlint" version "11.3.2"
// Detekt // Detekt
id "io.gitlab.arturbosch.detekt" version "1.22.0" id "io.gitlab.arturbosch.detekt" version "1.23.7"
// Ksp // Ksp
id "com.google.devtools.ksp" version "1.9.24-1.0.20" id "com.google.devtools.ksp" version "1.9.24-1.0.20"

View File

@ -203,6 +203,7 @@ ext.groups = [
'org.jacoco', 'org.jacoco',
'org.java-websocket', 'org.java-websocket',
'org.jcodec', 'org.jcodec',
'org.jcommander',
'org.jetbrains', 'org.jetbrains',
'org.jetbrains.dokka', 'org.jetbrains.dokka',
'org.jetbrains.intellij.deps', 'org.jetbrains.intellij.deps',
@ -229,6 +230,7 @@ ext.groups = [
'org.reactivestreams', 'org.reactivestreams',
'org.robolectric', 'org.robolectric',
'org.slf4j', 'org.slf4j',
'org.snakeyaml',
'org.sonatype.oss', 'org.sonatype.oss',
'org.testng', 'org.testng',
'org.threeten', 'org.threeten',

View File

@ -25,6 +25,8 @@ style:
active: false active: false
UseCheckOrError: UseCheckOrError:
active: false active: false
UnusedPrivateProperty:
active: false
empty-blocks: empty-blocks:
EmptyFunctionBlock: EmptyFunctionBlock:
@ -75,6 +77,8 @@ naming:
performance: performance:
SpreadOperator: SpreadOperator:
active: false 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 # Note: all rules for `comments` are disabled by default, but I put them here to be aware of their existence
comments: comments:
@ -91,7 +95,7 @@ comments:
EndOfSentenceFormat: EndOfSentenceFormat:
active: true active: true
OutdatedDocumentation: OutdatedDocumentation:
active: true active: false
UndocumentedPublicClass: UndocumentedPublicClass:
active: false active: false
UndocumentedPublicFunction: UndocumentedPublicFunction: