Merge pull request #4178 from jackq97/main

Updated detekt configuration to support compose:
This commit is contained in:
Kelson 2025-01-26 17:10:02 +01:00 committed by GitHub
commit 86ddd87076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,9 +79,9 @@ complexity:
threshold: 60
LongParameterList:
active: true
functionThreshold: 6
functionThreshold: 8
constructorThreshold: 6
ignoreDefaultParameters: false
ignoreDefaultParameters: true
MethodOverloading:
active: false
threshold: 6
@ -230,9 +230,10 @@ naming:
FunctionNaming:
active: true
excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt"
functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
functionPattern: '^([a-zA-Z$][a-zA-Z$0-9]*)|(`.*`)$'
excludeClassPattern: '$^'
ignoreOverridden: true
ignoreAnnotated: ['Composable']
FunctionParameterNaming:
active: true
excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt"
@ -391,7 +392,7 @@ style:
excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt"
ignoreNumbers: '-1,0,1,2'
ignoreHashCodeFunction: true
ignorePropertyDeclaration: false
ignorePropertyDeclaration: true
ignoreLocalVariableDeclaration: false
ignoreConstantDeclaration: true
ignoreCompanionObjectPropertyDeclaration: true
@ -474,6 +475,7 @@ style:
UnusedPrivateMember:
active: false
allowedNames: "(_|ignored|expected|serialVersionUID)"
ignoreAnnotated: ['Preview']
UseArrayLiteralsInAnnotations:
active: false
UseCheckOrError: