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>
This commit is contained in:
renovate[bot] 2022-11-21 12:13:33 +05:30 committed by GitHub
parent bcf82d46a0
commit 2a6fe4f159
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 29 deletions

View file

@ -36,9 +36,7 @@ class ProxyUtils @Inject constructor(private val gitSettings: GitSettings) {
} }
override fun connectFailed(uri: URI?, sa: SocketAddress?, ioe: IOException?) { override fun connectFailed(uri: URI?, sa: SocketAddress?, ioe: IOException?) {
if (uri == null || sa == null || ioe == null) { require(uri == null || sa == null || ioe == null) { "Arguments can't be null." }
throw IllegalArgumentException("Arguments can't be null.")
}
} }
} }
) )

View file

@ -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,9 +98,10 @@ complexity:
threshold: 10 threshold: 10
includeStaticDeclarations: false includeStaticDeclarations: false
includePrivateDeclarations: false includePrivateDeclarations: false
ComplexMethod: # TODO(msfjarvis): cleanup the offenders and wind this down
CyclomaticComplexMethod:
active: true active: true
threshold: 15 threshold: 40
ignoreSingleWhenExpression: false ignoreSingleWhenExpression: false
ignoreSimpleWhenEntries: false ignoreSimpleWhenEntries: false
ignoreNestingFunctions: false ignoreNestingFunctions: false
@ -413,8 +417,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 +431,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 +458,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 +497,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 +531,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 +542,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 +612,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

View file

@ -38,7 +38,7 @@ androidx-swiperefreshlayout = "androidx.swiperefreshlayout:swiperefreshlayout:1.
aps-sublimeFuzzy = "com.github.android-password-store:sublime-fuzzy:2.2.1" aps-sublimeFuzzy = "com.github.android-password-store:sublime-fuzzy:2.2.1"
aps-zxingAndroidEmbedded = "com.github.android-password-store:zxing-android-embedded:4.2.1" aps-zxingAndroidEmbedded = "com.github.android-password-store:zxing-android-embedded:4.2.1"
build-agp = { module = "com.android.tools.build:gradle", version.ref = "agp" } build-agp = { module = "com.android.tools.build:gradle", version.ref = "agp" }
build-detekt = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.21.0" build-detekt = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.22.0"
build-diffutils = "io.github.java-diff-utils:java-diff-utils:4.12" build-diffutils = "io.github.java-diff-utils:java-diff-utils:4.12"
build-download = "de.undercouch:gradle-download-task:5.3.0" build-download = "de.undercouch:gradle-download-task:5.3.0"
build-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } build-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }