Skip to content

Commit

Permalink
Updated detekt configuration:
Browse files Browse the repository at this point in the history
- Removed 'Preview' from `ignoreAnnotatedFunctions` in Complexity rule set.
'not supported in this version'
- Updated `constantPattern` to `[A-Z][_A-Z0-9]*` for TopLevelPropertyNaming rule.
- Added 'Preview' to `ignoreAnnotated` in UnusedPrivateMember rule set.
  • Loading branch information
jackq97 committed Jan 22, 2025
1 parent 29fdbc1 commit c11f856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ complexity:
ignoreDeprecated: false
ignorePrivate: false
ignoreOverridden: false
ignoreAnnotatedFunctions: ['Preview']

coroutines:
active: true
Expand Down Expand Up @@ -262,7 +261,7 @@ naming:
TopLevelPropertyNaming:
active: true
excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt"
constantPattern: '[A-Z][A-Za-z0-9]*'
constantPattern: '[A-Z][_A-Z0-9]*'
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
VariableMaxLength:
Expand Down Expand Up @@ -476,6 +475,7 @@ style:
UnusedPrivateMember:
active: false
allowedNames: "(_|ignored|expected|serialVersionUID)"
ignoreAnnotated: ['Preview']
UseArrayLiteralsInAnnotations:
active: false
UseCheckOrError:
Expand Down

0 comments on commit c11f856

Please sign in to comment.