|
| 1 | +build: |
| 2 | + maxIssues: 0 |
| 3 | + excludeCorrectable: false |
| 4 | + |
| 5 | +config: |
| 6 | + validation: true |
| 7 | + warningsAsErrors: false |
| 8 | + checkExhaustiveness: false |
| 9 | + |
| 10 | +processors: |
| 11 | + active: true |
| 12 | + |
| 13 | +console-reports: |
| 14 | + active: true |
| 15 | + |
| 16 | +# ktlint-based rules (detekt-formatting plugin) |
| 17 | +formatting: |
| 18 | + active: true |
| 19 | + android: true |
| 20 | + autoCorrect: true |
| 21 | + Indentation: |
| 22 | + active: true |
| 23 | + indentSize: 4 |
| 24 | + MaximumLineLength: |
| 25 | + active: true |
| 26 | + maxLineLength: 200 |
| 27 | + FunctionName: |
| 28 | + active: false # Composable functions use PascalCase |
| 29 | + ImportOrdering: |
| 30 | + active: true |
| 31 | + NoWildcardImports: |
| 32 | + active: true |
| 33 | + |
| 34 | +complexity: |
| 35 | + active: true |
| 36 | + LargeClass: |
| 37 | + active: true |
| 38 | + excludes: [ '**/test/**', '**/androidTest/**' ] |
| 39 | + LongMethod: |
| 40 | + active: true |
| 41 | + threshold: 100 |
| 42 | + ignoreAnnotated: [ 'Composable' ] |
| 43 | + LongParameterList: |
| 44 | + active: true |
| 45 | + functionThreshold: 10 |
| 46 | + constructorThreshold: 10 |
| 47 | + ignoreDefaultParameters: true |
| 48 | + ignoreAnnotatedParameter: [ 'Composable' ] |
| 49 | + TooManyFunctions: |
| 50 | + active: true |
| 51 | + thresholdInClasses: 30 |
| 52 | + thresholdInFiles: 30 |
| 53 | + thresholdInObjects: 30 |
| 54 | + thresholdInInterfaces: 30 |
| 55 | + CyclomaticComplexMethod: |
| 56 | + active: true |
| 57 | + threshold: 30 |
| 58 | + |
| 59 | +naming: |
| 60 | + active: true |
| 61 | + FunctionNaming: |
| 62 | + active: true |
| 63 | + functionPattern: '[a-zA-Z][a-zA-Z0-9]*' |
| 64 | + ignoreAnnotated: [ 'Composable' ] |
| 65 | + TopLevelPropertyNaming: |
| 66 | + active: true |
| 67 | + constantPattern: '[A-Z][_A-Z0-9]*' |
| 68 | + |
| 69 | +style: |
| 70 | + active: true |
| 71 | + MaxLineLength: |
| 72 | + active: true |
| 73 | + maxLineLength: 140 |
| 74 | + excludes: [ '**/test/**', '**/androidTest/**' ] |
| 75 | + MagicNumber: |
| 76 | + active: true |
| 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' ] |
| 85 | + ignorePropertyDeclaration: true |
| 86 | + ignoreCompanionObjectPropertyDeclaration: true |
| 87 | + ReturnCount: |
| 88 | + active: true |
| 89 | + max: 8 |
| 90 | + UnusedPrivateMember: |
| 91 | + active: true |
| 92 | + ignoreAnnotated: [ 'Preview' ] |
| 93 | + |
| 94 | +comments: |
| 95 | + active: true |
| 96 | + UndocumentedPublicClass: |
| 97 | + active: false |
| 98 | + UndocumentedPublicFunction: |
| 99 | + active: false |
| 100 | + UndocumentedPublicProperty: |
| 101 | + active: false |
0 commit comments