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