mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 11:47:04 +05:30
fix(detekt): update config for 1.22.0 deprecations
This commit is contained in:
parent
9aa50637e0
commit
e12fc5ae6a
1 changed files with 8 additions and 24 deletions
|
@ -87,6 +87,9 @@ comments:
|
||||||
|
|
||||||
complexity:
|
complexity:
|
||||||
active: true
|
active: true
|
||||||
|
CognitiveComplexMethod:
|
||||||
|
active: false
|
||||||
|
threshold: 15
|
||||||
ComplexCondition:
|
ComplexCondition:
|
||||||
active: true
|
active: true
|
||||||
threshold: 4
|
threshold: 4
|
||||||
|
@ -95,7 +98,7 @@ complexity:
|
||||||
threshold: 10
|
threshold: 10
|
||||||
includeStaticDeclarations: false
|
includeStaticDeclarations: false
|
||||||
includePrivateDeclarations: false
|
includePrivateDeclarations: false
|
||||||
ComplexMethod:
|
CyclomaticComplexMethod:
|
||||||
active: true
|
active: true
|
||||||
threshold: 15
|
threshold: 15
|
||||||
ignoreSingleWhenExpression: false
|
ignoreSingleWhenExpression: false
|
||||||
|
@ -413,8 +416,6 @@ potential-bugs:
|
||||||
- 'java.util.HashSet'
|
- 'java.util.HashSet'
|
||||||
- 'java.util.LinkedHashMap'
|
- 'java.util.LinkedHashMap'
|
||||||
- 'java.util.HashMap'
|
- 'java.util.HashMap'
|
||||||
DuplicateCaseInWhenExpression:
|
|
||||||
active: true
|
|
||||||
ElseCaseInsteadOfExhaustiveWhen:
|
ElseCaseInsteadOfExhaustiveWhen:
|
||||||
active: false
|
active: false
|
||||||
EqualsAlwaysReturnsTrueOrFalse:
|
EqualsAlwaysReturnsTrueOrFalse:
|
||||||
|
@ -429,7 +430,7 @@ potential-bugs:
|
||||||
active: true
|
active: true
|
||||||
IgnoredReturnValue:
|
IgnoredReturnValue:
|
||||||
active: true
|
active: true
|
||||||
restrictToAnnotatedMethods: true
|
restrictToConfig: true
|
||||||
returnValueAnnotations:
|
returnValueAnnotations:
|
||||||
- '*.CheckResult'
|
- '*.CheckResult'
|
||||||
- '*.CheckReturnValue'
|
- '*.CheckReturnValue'
|
||||||
|
@ -456,15 +457,10 @@ potential-bugs:
|
||||||
MissingPackageDeclaration:
|
MissingPackageDeclaration:
|
||||||
active: false
|
active: false
|
||||||
excludes: ['**/*.kts']
|
excludes: ['**/*.kts']
|
||||||
MissingWhenCase:
|
|
||||||
active: true
|
|
||||||
allowElseExpression: true
|
|
||||||
NullCheckOnMutableProperty:
|
NullCheckOnMutableProperty:
|
||||||
active: false
|
active: false
|
||||||
NullableToStringCall:
|
NullableToStringCall:
|
||||||
active: false
|
active: false
|
||||||
RedundantElseInWhen:
|
|
||||||
active: true
|
|
||||||
UnconditionalJumpStatementInLoop:
|
UnconditionalJumpStatementInLoop:
|
||||||
active: false
|
active: false
|
||||||
UnnecessaryNotNullOperator:
|
UnnecessaryNotNullOperator:
|
||||||
|
@ -500,7 +496,7 @@ style:
|
||||||
active: false
|
active: false
|
||||||
DataClassContainsFunctions:
|
DataClassContainsFunctions:
|
||||||
active: false
|
active: false
|
||||||
conversionFunctionPrefix: 'to'
|
conversionFunctionPrefix: ['to']
|
||||||
DataClassShouldBeImmutable:
|
DataClassShouldBeImmutable:
|
||||||
active: false
|
active: false
|
||||||
DestructuringDeclarationWithTooManyEntries:
|
DestructuringDeclarationWithTooManyEntries:
|
||||||
|
@ -534,12 +530,6 @@ style:
|
||||||
methods:
|
methods:
|
||||||
- 'kotlin.io.print'
|
- 'kotlin.io.print'
|
||||||
- 'kotlin.io.println'
|
- 'kotlin.io.println'
|
||||||
ForbiddenPublicDataClass:
|
|
||||||
active: true
|
|
||||||
excludes: ['**']
|
|
||||||
ignorePackages:
|
|
||||||
- '*.internal'
|
|
||||||
- '*.internal.*'
|
|
||||||
ForbiddenSuppress:
|
ForbiddenSuppress:
|
||||||
active: false
|
active: false
|
||||||
rules: []
|
rules: []
|
||||||
|
@ -551,13 +541,7 @@ style:
|
||||||
active: true
|
active: true
|
||||||
ignoreOverridableFunction: true
|
ignoreOverridableFunction: true
|
||||||
ignoreActualFunction: true
|
ignoreActualFunction: true
|
||||||
excludedFunctions: ''
|
excludedFunctions: []
|
||||||
LibraryCodeMustSpecifyReturnType:
|
|
||||||
active: true
|
|
||||||
excludes: ['**']
|
|
||||||
LibraryEntitiesShouldNotBePublic:
|
|
||||||
active: true
|
|
||||||
excludes: ['**']
|
|
||||||
LoopWithTooManyJumpStatements:
|
LoopWithTooManyJumpStatements:
|
||||||
active: true
|
active: true
|
||||||
maxJumpCount: 1
|
maxJumpCount: 1
|
||||||
|
@ -627,7 +611,7 @@ style:
|
||||||
ReturnCount:
|
ReturnCount:
|
||||||
active: true
|
active: true
|
||||||
max: 2
|
max: 2
|
||||||
excludedFunctions: 'equals'
|
excludedFunctions: ['equals']
|
||||||
excludeLabeled: false
|
excludeLabeled: false
|
||||||
excludeReturnFromLambda: true
|
excludeReturnFromLambda: true
|
||||||
excludeGuardClauses: false
|
excludeGuardClauses: false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue