Skip to content

Commit 2d8fa5b

Browse files
committed
Added and modified rules
1 parent c48eae2 commit 2d8fa5b

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

config/detekt/detekt.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ complexity:
3535
active: true
3636
LargeClass:
3737
active: true
38-
excludes: ['**/test/**', '**/androidTest/**']
38+
excludes: [ '**/test/**', '**/androidTest/**' ]
3939
LongMethod:
4040
active: true
4141
threshold: 100
42-
ignoreAnnotated: ['Composable']
42+
ignoreAnnotated: [ 'Composable' ]
4343
LongParameterList:
4444
active: true
4545
functionThreshold: 10
4646
constructorThreshold: 10
4747
ignoreDefaultParameters: true
48-
ignoreAnnotatedParameter: ['Composable']
48+
ignoreAnnotatedParameter: [ 'Composable' ]
4949
TooManyFunctions:
5050
active: true
5151
thresholdInClasses: 30
@@ -61,7 +61,7 @@ naming:
6161
FunctionNaming:
6262
active: true
6363
functionPattern: '[a-zA-Z][a-zA-Z0-9]*'
64-
ignoreAnnotated: ['Composable']
64+
ignoreAnnotated: [ 'Composable' ]
6565
TopLevelPropertyNaming:
6666
active: true
6767
constantPattern: '[A-Z][_A-Z0-9]*'
@@ -71,20 +71,25 @@ style:
7171
MaxLineLength:
7272
active: true
7373
maxLineLength: 140
74-
excludes: ['**/test/**', '**/androidTest/**']
74+
excludes: [ '**/test/**', '**/androidTest/**' ]
7575
MagicNumber:
7676
active: true
77-
excludes: ['**/theme/**', '**/test/**', '**/androidTest/**']
78-
ignoreNumbers: ['-1', '0', '1', '2']
79-
ignoreAnnotated: ['Composable', 'Preview']
77+
excludes: [ '**/theme/Auth0Sizes.kt',
78+
'**/theme/Auth0Dimensions.kt',
79+
'**/theme/Auth0Color.kt',
80+
'**/theme/Auth0Shapes.kt',
81+
'**/test/**',
82+
'**/androidTest/**' ]
83+
ignoreNumbers: [ '-1', '0', '1', '2' ]
84+
ignoreAnnotated: [ 'Composable', 'Preview' ]
8085
ignorePropertyDeclaration: true
8186
ignoreCompanionObjectPropertyDeclaration: true
8287
ReturnCount:
8388
active: true
8489
max: 8
8590
UnusedPrivateMember:
8691
active: true
87-
ignoreAnnotated: ['Preview']
92+
ignoreAnnotated: [ 'Preview' ]
8893

8994
comments:
9095
active: true

0 commit comments

Comments
 (0)