diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-07-17 13:26:14 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-07-17 13:57:13 +0530 |
commit | 5d2a8e9aba8a15abd8971b4dd69d2a52eca3e5ba (patch) | |
tree | a4c4d466d75bb98c4d9fb1c7ab02090fe27e3504 /config/detekt/detekt.yml | |
parent | b8799d7de871568e83214a6cc68a1baee8030fa7 (diff) |
detekt: tweak default config for better Compose support
Diffstat (limited to 'config/detekt/detekt.yml')
-rw-r--r-- | config/detekt/detekt.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml index 462058ca..69a60690 100644 --- a/config/detekt/detekt.yml +++ b/config/detekt/detekt.yml @@ -325,6 +325,7 @@ naming: functionPattern: '[a-z][a-zA-Z0-9]*' excludeClassPattern: '$^' ignoreOverridden: true + ignoreAnnotated: ['Composable'] FunctionParameterNaming: active: true parameterPattern: '[a-z][A-Za-z0-9]*' @@ -357,7 +358,7 @@ naming: packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*' TopLevelPropertyNaming: active: true - constantPattern: '[A-Z][_A-Z0-9]*' + constantPattern: '[A-Z][A-Za-z0-9]*' propertyPattern: '[A-Za-z][_A-Za-z0-9]*' privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*' VariableMaxLength: @@ -569,7 +570,7 @@ style: - '1' - '2' ignoreHashCodeFunction: true - ignorePropertyDeclaration: false + ignorePropertyDeclaration: true ignoreLocalVariableDeclaration: false ignoreConstantDeclaration: true ignoreCompanionObjectPropertyDeclaration: true @@ -673,6 +674,7 @@ style: UnusedPrivateMember: active: true allowedNames: '(_|ignored|expected|serialVersionUID)' + ignoreAnnotated: ['Preview'] UseAnyOrNoneInsteadOfFind: active: true UseArrayLiteralsInAnnotations: |