diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml index 10e5a4851..2132fb17e 100644 --- a/config/detekt/detekt.yml +++ b/config/detekt/detekt.yml @@ -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: