mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 03:54:18 -04:00
Merge pull request #4178 from jackq97/main
Updated detekt configuration to support compose:
This commit is contained in:
commit
86ddd87076
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user