mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-15 15:02:49 +01:00
Setting up detekt config
This commit is contained in:
parent
c3d9b3b492
commit
51a99c4f94
@ -129,11 +129,12 @@ complexity:
|
|||||||
LongMethod:
|
LongMethod:
|
||||||
active: true
|
active: true
|
||||||
threshold: 60
|
threshold: 60
|
||||||
|
ignoreAnnotated: ['Composable']
|
||||||
LongParameterList:
|
LongParameterList:
|
||||||
active: true
|
active: true
|
||||||
functionThreshold: 6
|
functionThreshold: 6
|
||||||
constructorThreshold: 7
|
constructorThreshold: 7
|
||||||
ignoreDefaultParameters: false
|
ignoreDefaultParameters: true
|
||||||
ignoreDataClasses: true
|
ignoreDataClasses: true
|
||||||
ignoreAnnotatedParameter: []
|
ignoreAnnotatedParameter: []
|
||||||
MethodOverloading:
|
MethodOverloading:
|
||||||
@ -333,6 +334,7 @@ naming:
|
|||||||
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/androidUnitTest/**', '**/androidInstrumentedTest/**', '**/jsTest/**', '**/iosTest/**']
|
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/androidUnitTest/**', '**/androidInstrumentedTest/**', '**/jsTest/**', '**/iosTest/**']
|
||||||
functionPattern: '[a-z][a-zA-Z0-9]*'
|
functionPattern: '[a-z][a-zA-Z0-9]*'
|
||||||
excludeClassPattern: '$^'
|
excludeClassPattern: '$^'
|
||||||
|
ignoreAnnotated: ['Composable']
|
||||||
FunctionParameterNaming:
|
FunctionParameterNaming:
|
||||||
active: true
|
active: true
|
||||||
parameterPattern: '[a-z][A-Za-z0-9]*'
|
parameterPattern: '[a-z][A-Za-z0-9]*'
|
||||||
@ -364,7 +366,7 @@ naming:
|
|||||||
packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*'
|
packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*'
|
||||||
TopLevelPropertyNaming:
|
TopLevelPropertyNaming:
|
||||||
active: true
|
active: true
|
||||||
constantPattern: '[A-Z][_A-Z0-9]*'
|
constantPattern: '[A-Z][A-Za-z0-9]*'
|
||||||
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
||||||
privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
|
privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
|
||||||
VariableMaxLength:
|
VariableMaxLength:
|
||||||
@ -615,7 +617,7 @@ style:
|
|||||||
- '1'
|
- '1'
|
||||||
- '2'
|
- '2'
|
||||||
ignoreHashCodeFunction: true
|
ignoreHashCodeFunction: true
|
||||||
ignorePropertyDeclaration: false
|
ignorePropertyDeclaration: true
|
||||||
ignoreLocalVariableDeclaration: false
|
ignoreLocalVariableDeclaration: false
|
||||||
ignoreConstantDeclaration: true
|
ignoreConstantDeclaration: true
|
||||||
ignoreCompanionObjectPropertyDeclaration: true
|
ignoreCompanionObjectPropertyDeclaration: true
|
||||||
@ -738,6 +740,7 @@ style:
|
|||||||
UnusedPrivateMember:
|
UnusedPrivateMember:
|
||||||
active: true
|
active: true
|
||||||
allowedNames: ''
|
allowedNames: ''
|
||||||
|
ignoreAnnotated: ['Preview']
|
||||||
UnusedPrivateProperty:
|
UnusedPrivateProperty:
|
||||||
active: true
|
active: true
|
||||||
allowedNames: '_|ignored|expected|serialVersionUID'
|
allowedNames: '_|ignored|expected|serialVersionUID'
|
||||||
|
Loading…
Reference in New Issue
Block a user