Fix detekt.yml for new detekt version

Remove formatting (that is handled by ktlint), update some other properties

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey Vilas 2022-04-18 11:14:17 +02:00
parent 7ed1b84375
commit 3930633272
No known key found for this signature in database
GPG key ID: 2585783189A62105

View file

@ -69,7 +69,8 @@ complexity:
excludes: ['**/androidTest/**'] excludes: ['**/androidTest/**']
LongParameterList: LongParameterList:
active: true active: true
threshold: 6 functionThreshold: 6
constructorThreshold: 6
ignoreDefaultParameters: false ignoreDefaultParameters: false
MethodOverloading: MethodOverloading:
active: false active: false
@ -174,72 +175,6 @@ exceptions:
- Throwable - Throwable
- RuntimeException - RuntimeException
formatting:
active: true
android: false
ChainWrapping:
active: true
CommentSpacing:
active: true
Filename:
active: true
FinalNewline:
active: true
ImportOrdering:
active: false
Indentation:
active: true
indentSize: 4
continuationIndentSize: 4
MaximumLineLength:
active: true
maxLineLength: 120
ModifierOrdering:
active: true
NoBlankLineBeforeRbrace:
active: true
NoConsecutiveBlankLines:
active: true
NoEmptyClassBody:
active: true
NoLineBreakAfterElse:
active: true
NoLineBreakBeforeAssignment:
active: true
NoMultipleSpaces:
active: true
NoSemicolons:
active: true
NoTrailingSpaces:
active: true
NoUnitReturn:
active: true
NoUnusedImports:
active: true
NoWildcardImports:
active: true
PackageName:
active: true
ParameterListWrapping:
active: true
indentSize: 4
SpacingAroundColon:
active: true
SpacingAroundComma:
active: true
SpacingAroundCurly:
active: true
SpacingAroundKeyword:
active: true
SpacingAroundOperators:
active: true
SpacingAroundParens:
active: true
SpacingAroundRangeOperator:
active: true
StringTemplate:
active: true
naming: naming:
active: true active: true
ClassNaming: ClassNaming:
@ -333,7 +268,7 @@ potential-bugs:
active: false active: false
LateinitUsage: LateinitUsage:
active: false active: false
excludeAnnotatedProperties: "" ignoreAnnotated: []
ignoreOnClassesPattern: "" ignoreOnClassesPattern: ""
UnconditionalJumpStatementInLoop: UnconditionalJumpStatementInLoop:
active: false active: false
@ -439,10 +374,11 @@ style:
active: false active: false
UnderscoresInNumericLiterals: UnderscoresInNumericLiterals:
active: false active: false
acceptableDecimalLength: 5 acceptableLength: 5
UnnecessaryAbstractClass: UnnecessaryAbstractClass:
active: false active: false
excludeAnnotatedClasses: "dagger.Module" ignoreAnnotated:
- "dagger.Module"
UnnecessaryApply: UnnecessaryApply:
active: false active: false
UnnecessaryInheritance: UnnecessaryInheritance:
@ -462,7 +398,7 @@ style:
allowedNames: "(_|ignored|expected|serialVersionUID)" allowedNames: "(_|ignored|expected|serialVersionUID)"
UseDataClass: UseDataClass:
active: false active: false
excludeAnnotatedClasses: "" ignoreAnnotated: []
UtilityClassWithPublicConstructor: UtilityClassWithPublicConstructor:
active: false active: false
VarCouldBeVal: VarCouldBeVal: