aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2022-11-21 12:13:33 +0530
committerGitHub <noreply@github.com>2022-11-21 12:13:33 +0530
commit2a6fe4f1595914d2c0f615b0e7250689a3ee9397 (patch)
tree1646472622312157aaf7dad8f2926e7f7a4f62eb /config
parentbcf82d46a0d4eda8a21560e12c94be20b99ff099 (diff)
fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-gradle-plugin to v1.22.0 (#2262)
* fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-gradle-plugin to v1.22.0 * chore: sync detekt config with 0.22.0 changes * chore: fix Detekt warning Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'config')
-rw-r--r--config/detekt/detekt.yml35
1 files changed, 10 insertions, 25 deletions
diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml
index 78d50515..67d95a88 100644
--- a/config/detekt/detekt.yml
+++ b/config/detekt/detekt.yml
@@ -87,6 +87,9 @@ comments:
complexity:
active: true
+ CognitiveComplexMethod:
+ active: false
+ threshold: 15
ComplexCondition:
active: true
threshold: 4
@@ -95,9 +98,10 @@ complexity:
threshold: 10
includeStaticDeclarations: false
includePrivateDeclarations: false
- ComplexMethod:
+ # TODO(msfjarvis): cleanup the offenders and wind this down
+ CyclomaticComplexMethod:
active: true
- threshold: 15
+ threshold: 40
ignoreSingleWhenExpression: false
ignoreSimpleWhenEntries: false
ignoreNestingFunctions: false
@@ -413,8 +417,6 @@ potential-bugs:
- 'java.util.HashSet'
- 'java.util.LinkedHashMap'
- 'java.util.HashMap'
- DuplicateCaseInWhenExpression:
- active: true
ElseCaseInsteadOfExhaustiveWhen:
active: false
EqualsAlwaysReturnsTrueOrFalse:
@@ -429,7 +431,7 @@ potential-bugs:
active: true
IgnoredReturnValue:
active: true
- restrictToAnnotatedMethods: true
+ restrictToConfig: true
returnValueAnnotations:
- '*.CheckResult'
- '*.CheckReturnValue'
@@ -456,15 +458,10 @@ potential-bugs:
MissingPackageDeclaration:
active: false
excludes: ['**/*.kts']
- MissingWhenCase:
- active: true
- allowElseExpression: true
NullCheckOnMutableProperty:
active: false
NullableToStringCall:
active: false
- RedundantElseInWhen:
- active: true
UnconditionalJumpStatementInLoop:
active: false
UnnecessaryNotNullOperator:
@@ -500,7 +497,7 @@ style:
active: false
DataClassContainsFunctions:
active: false
- conversionFunctionPrefix: 'to'
+ conversionFunctionPrefix: ['to']
DataClassShouldBeImmutable:
active: false
DestructuringDeclarationWithTooManyEntries:
@@ -534,12 +531,6 @@ style:
methods:
- 'kotlin.io.print'
- 'kotlin.io.println'
- ForbiddenPublicDataClass:
- active: true
- excludes: ['**']
- ignorePackages:
- - '*.internal'
- - '*.internal.*'
ForbiddenSuppress:
active: false
rules: []
@@ -551,13 +542,7 @@ style:
active: true
ignoreOverridableFunction: true
ignoreActualFunction: true
- excludedFunctions: ''
- LibraryCodeMustSpecifyReturnType:
- active: true
- excludes: ['**']
- LibraryEntitiesShouldNotBePublic:
- active: true
- excludes: ['**']
+ excludedFunctions: []
LoopWithTooManyJumpStatements:
active: true
maxJumpCount: 1
@@ -627,7 +612,7 @@ style:
ReturnCount:
active: true
max: 2
- excludedFunctions: 'equals'
+ excludedFunctions: ['equals']
excludeLabeled: false
excludeReturnFromLambda: true
excludeGuardClauses: false