[#98] Detekt 1.19.0
This commit is contained in:
parent
d10ff6eb46
commit
c457406bc3
|
@ -73,9 +73,8 @@ commons-logging:commons-logging:1.2=classpath
|
||||||
de.undercouch:gradle-download-task:4.1.1=classpath
|
de.undercouch:gradle-download-task:4.1.1=classpath
|
||||||
io.github.detekt.sarif4k:sarif4k:0.0.1=classpath
|
io.github.detekt.sarif4k:sarif4k:0.0.1=classpath
|
||||||
io.github.x-stream:mxparser:1.2.1=classpath
|
io.github.x-stream:mxparser:1.2.1=classpath
|
||||||
io.gitlab.arturbosch.detekt:detekt-bom:1.18.1=classpath
|
io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0=classpath
|
||||||
io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.18.1=classpath
|
io.gitlab.arturbosch.detekt:io.gitlab.arturbosch.detekt.gradle.plugin:1.19.0=classpath
|
||||||
io.gitlab.arturbosch.detekt:io.gitlab.arturbosch.detekt.gradle.plugin:1.18.1=classpath
|
|
||||||
io.grpc:grpc-api:1.21.1=classpath
|
io.grpc:grpc-api:1.21.1=classpath
|
||||||
io.grpc:grpc-context:1.21.1=classpath
|
io.grpc:grpc-context:1.21.1=classpath
|
||||||
io.grpc:grpc-core:1.21.1=classpath
|
io.grpc:grpc-core:1.21.1=classpath
|
||||||
|
|
|
@ -46,7 +46,7 @@ ANDROID_COMPILE_SDK_VERSION=31
|
||||||
ANDROID_NDK_VERSION=23.0.7599858
|
ANDROID_NDK_VERSION=23.0.7599858
|
||||||
|
|
||||||
ANDROID_GRADLE_PLUGIN_VERSION=7.0.3
|
ANDROID_GRADLE_PLUGIN_VERSION=7.0.3
|
||||||
DETEKT_VERSION=1.18.1
|
DETEKT_VERSION=1.19.0
|
||||||
GRADLE_VERSIONS_PLUGIN_VERSION=0.39.0
|
GRADLE_VERSIONS_PLUGIN_VERSION=0.39.0
|
||||||
KTLINT_VERSION=0.43.1
|
KTLINT_VERSION=0.43.1
|
||||||
JGIT_VERSION=5.12.0.202106070339-r
|
JGIT_VERSION=5.12.0.202106070339-r
|
||||||
|
|
|
@ -38,6 +38,7 @@ console-reports:
|
||||||
- 'NotificationReport'
|
- 'NotificationReport'
|
||||||
# - 'FindingsReport'
|
# - 'FindingsReport'
|
||||||
- 'FileBasedFindingsReport'
|
- 'FileBasedFindingsReport'
|
||||||
|
- 'LiteFindingsReport'
|
||||||
|
|
||||||
output-reports:
|
output-reports:
|
||||||
active: true
|
active: true
|
||||||
|
@ -61,6 +62,10 @@ comments:
|
||||||
EndOfSentenceFormat:
|
EndOfSentenceFormat:
|
||||||
active: false
|
active: false
|
||||||
endOfSentenceFormat: '([.?!][ \t\n\r\f<])|([.?!:]$)'
|
endOfSentenceFormat: '([.?!][ \t\n\r\f<])|([.?!:]$)'
|
||||||
|
OutdatedDocumentation:
|
||||||
|
active: false
|
||||||
|
matchTypeParameters: true
|
||||||
|
matchDeclarationsOrder: true
|
||||||
UndocumentedPublicClass:
|
UndocumentedPublicClass:
|
||||||
active: false
|
active: false
|
||||||
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
||||||
|
@ -110,14 +115,13 @@ complexity:
|
||||||
LongMethod:
|
LongMethod:
|
||||||
active: true
|
active: true
|
||||||
threshold: 60
|
threshold: 60
|
||||||
ignoreAnnotated: []
|
|
||||||
LongParameterList:
|
LongParameterList:
|
||||||
active: true
|
active: true
|
||||||
functionThreshold: 6
|
functionThreshold: 6
|
||||||
constructorThreshold: 7
|
constructorThreshold: 7
|
||||||
ignoreDefaultParameters: false
|
ignoreDefaultParameters: false
|
||||||
ignoreDataClasses: true
|
ignoreDataClasses: true
|
||||||
ignoreAnnotated: []
|
ignoreAnnotatedParameter: []
|
||||||
MethodOverloading:
|
MethodOverloading:
|
||||||
active: false
|
active: false
|
||||||
threshold: 6
|
threshold: 6
|
||||||
|
@ -152,6 +156,12 @@ coroutines:
|
||||||
active: true
|
active: true
|
||||||
GlobalCoroutineUsage:
|
GlobalCoroutineUsage:
|
||||||
active: false
|
active: false
|
||||||
|
InjectDispatcher:
|
||||||
|
active: false
|
||||||
|
dispatcherNames:
|
||||||
|
- 'IO'
|
||||||
|
- 'Default'
|
||||||
|
- 'Unconfined'
|
||||||
RedundantSuspendModifier:
|
RedundantSuspendModifier:
|
||||||
active: false
|
active: false
|
||||||
SleepInsteadOfDelay:
|
SleepInsteadOfDelay:
|
||||||
|
@ -312,7 +322,7 @@ formatting:
|
||||||
active: true
|
active: true
|
||||||
autoCorrect: true
|
autoCorrect: true
|
||||||
MultiLineIfElse:
|
MultiLineIfElse:
|
||||||
active: true
|
active: false
|
||||||
autoCorrect: true
|
autoCorrect: true
|
||||||
NoBlankLineBeforeRbrace:
|
NoBlankLineBeforeRbrace:
|
||||||
active: true
|
active: true
|
||||||
|
@ -451,6 +461,10 @@ naming:
|
||||||
active: false
|
active: false
|
||||||
excludes: ['**/*.kts']
|
excludes: ['**/*.kts']
|
||||||
rootPackage: ''
|
rootPackage: ''
|
||||||
|
LambdaParameterNaming:
|
||||||
|
active: false
|
||||||
|
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
||||||
|
parameterPattern: '[a-z][A-Za-z0-9]*|_'
|
||||||
MatchingDeclarationName:
|
MatchingDeclarationName:
|
||||||
active: true
|
active: true
|
||||||
mustBeFirst: true
|
mustBeFirst: true
|
||||||
|
@ -555,10 +569,12 @@ potential-bugs:
|
||||||
LateinitUsage:
|
LateinitUsage:
|
||||||
active: false
|
active: false
|
||||||
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
||||||
excludeAnnotatedProperties: []
|
|
||||||
ignoreOnClassesPattern: ''
|
ignoreOnClassesPattern: ''
|
||||||
MapGetWithNotNullAssertionOperator:
|
MapGetWithNotNullAssertionOperator:
|
||||||
active: false
|
active: false
|
||||||
|
MissingPackageDeclaration:
|
||||||
|
active: false
|
||||||
|
excludes: ['**/*.kts']
|
||||||
MissingWhenCase:
|
MissingWhenCase:
|
||||||
active: true
|
active: true
|
||||||
allowElseExpression: true
|
allowElseExpression: true
|
||||||
|
@ -578,6 +594,7 @@ potential-bugs:
|
||||||
active: true
|
active: true
|
||||||
UnsafeCallOnNullableType:
|
UnsafeCallOnNullableType:
|
||||||
active: true
|
active: true
|
||||||
|
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
||||||
UnsafeCast:
|
UnsafeCast:
|
||||||
active: true
|
active: true
|
||||||
UnusedUnaryOperator:
|
UnusedUnaryOperator:
|
||||||
|
@ -619,6 +636,7 @@ style:
|
||||||
- 'STOPSHIP:'
|
- 'STOPSHIP:'
|
||||||
- 'TODO:'
|
- 'TODO:'
|
||||||
allowedPatterns: '\[[^\]]\d+\]'
|
allowedPatterns: '\[[^\]]\d+\]'
|
||||||
|
customMessage: ''
|
||||||
ForbiddenImport:
|
ForbiddenImport:
|
||||||
active: false
|
active: false
|
||||||
imports: []
|
imports: []
|
||||||
|
@ -643,8 +661,6 @@ style:
|
||||||
ignoreOverridableFunction: true
|
ignoreOverridableFunction: true
|
||||||
ignoreActualFunction: true
|
ignoreActualFunction: true
|
||||||
excludedFunctions: ''
|
excludedFunctions: ''
|
||||||
excludeAnnotatedFunction:
|
|
||||||
- 'dagger.Provides'
|
|
||||||
LibraryCodeMustSpecifyReturnType:
|
LibraryCodeMustSpecifyReturnType:
|
||||||
active: true
|
active: true
|
||||||
excludes: ['**']
|
excludes: ['**']
|
||||||
|
@ -733,11 +749,9 @@ style:
|
||||||
active: false
|
active: false
|
||||||
UnderscoresInNumericLiterals:
|
UnderscoresInNumericLiterals:
|
||||||
active: false
|
active: false
|
||||||
acceptableDecimalLength: 5
|
acceptableLength: 4
|
||||||
UnnecessaryAbstractClass:
|
UnnecessaryAbstractClass:
|
||||||
active: true
|
active: true
|
||||||
excludeAnnotatedClasses:
|
|
||||||
- 'dagger.Module'
|
|
||||||
UnnecessaryAnnotationUseSiteTarget:
|
UnnecessaryAnnotationUseSiteTarget:
|
||||||
active: false
|
active: false
|
||||||
UnnecessaryApply:
|
UnnecessaryApply:
|
||||||
|
@ -759,6 +773,8 @@ style:
|
||||||
UnusedPrivateMember:
|
UnusedPrivateMember:
|
||||||
active: true
|
active: true
|
||||||
allowedNames: '(_|ignored|expected|serialVersionUID)'
|
allowedNames: '(_|ignored|expected|serialVersionUID)'
|
||||||
|
UseAnyOrNoneInsteadOfFind:
|
||||||
|
active: false
|
||||||
UseArrayLiteralsInAnnotations:
|
UseArrayLiteralsInAnnotations:
|
||||||
active: false
|
active: false
|
||||||
UseCheckNotNull:
|
UseCheckNotNull:
|
||||||
|
@ -767,7 +783,6 @@ style:
|
||||||
active: false
|
active: false
|
||||||
UseDataClass:
|
UseDataClass:
|
||||||
active: false
|
active: false
|
||||||
excludeAnnotatedClasses: []
|
|
||||||
allowVars: false
|
allowVars: false
|
||||||
UseEmptyCounterpart:
|
UseEmptyCounterpart:
|
||||||
active: false
|
active: false
|
||||||
|
@ -794,4 +809,3 @@ style:
|
||||||
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
||||||
excludeImports:
|
excludeImports:
|
||||||
- 'java.util.*'
|
- 'java.util.*'
|
||||||
- 'kotlinx.android.synthetic.*'
|
|
||||||
|
|
Loading…
Reference in New Issue