Add disabled checks to config
This commit is contained in:
29
detekt.yml
29
detekt.yml
@@ -1,4 +1,7 @@
|
|||||||
# https://github.com/arturbosch/detekt/blob/e38c02e2ed1c90cc7e052945b1c584153dba6c28/detekt-cli/src/main/resources/default-detekt-config.yml
|
# https://github.com/arturbosch/detekt/blob/801994bd60cc759b181649356cea045b8125301b/detekt-cli/src/main/resources/default-detekt-config.yml
|
||||||
|
|
||||||
|
comments:
|
||||||
|
active: false
|
||||||
|
|
||||||
complexity:
|
complexity:
|
||||||
active: true
|
active: true
|
||||||
@@ -46,6 +49,8 @@ complexity:
|
|||||||
|
|
||||||
empty-blocks:
|
empty-blocks:
|
||||||
active: true
|
active: true
|
||||||
|
EmptyCatchBlock:
|
||||||
|
active: false
|
||||||
EmptyClassBlock:
|
EmptyClassBlock:
|
||||||
active: true
|
active: true
|
||||||
EmptyDefaultConstructor:
|
EmptyDefaultConstructor:
|
||||||
@@ -82,6 +87,8 @@ exceptions:
|
|||||||
active: true
|
active: true
|
||||||
NotImplementedDeclaration:
|
NotImplementedDeclaration:
|
||||||
active: true
|
active: true
|
||||||
|
PrintStackTrace:
|
||||||
|
active: false
|
||||||
RethrowCaughtException:
|
RethrowCaughtException:
|
||||||
active: true
|
active: true
|
||||||
ReturnFromFinally:
|
ReturnFromFinally:
|
||||||
@@ -124,7 +131,7 @@ naming:
|
|||||||
classPattern: '[A-Z$][a-zA-Z0-9$]*'
|
classPattern: '[A-Z$][a-zA-Z0-9$]*'
|
||||||
EnumNaming:
|
EnumNaming:
|
||||||
active: true
|
active: true
|
||||||
enumEntryPattern: '^[A-Z][_A-Z0-9]*$'
|
enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*'
|
||||||
ForbiddenClassName:
|
ForbiddenClassName:
|
||||||
active: true
|
active: true
|
||||||
forbiddenName: ''
|
forbiddenName: ''
|
||||||
@@ -139,6 +146,8 @@ naming:
|
|||||||
functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
|
functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
|
||||||
MatchingDeclarationName:
|
MatchingDeclarationName:
|
||||||
active: true
|
active: true
|
||||||
|
MemberNameEqualsClassName:
|
||||||
|
active: false
|
||||||
ObjectPropertyNaming:
|
ObjectPropertyNaming:
|
||||||
active: true
|
active: true
|
||||||
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
||||||
@@ -186,10 +195,16 @@ potential-bugs:
|
|||||||
active: true
|
active: true
|
||||||
IteratorNotThrowingNoSuchElementException:
|
IteratorNotThrowingNoSuchElementException:
|
||||||
active: true
|
active: true
|
||||||
|
LateinitUsage:
|
||||||
|
active: false
|
||||||
UnconditionalJumpStatementInLoop:
|
UnconditionalJumpStatementInLoop:
|
||||||
active: true
|
active: true
|
||||||
UnreachableCode:
|
UnreachableCode:
|
||||||
active: true
|
active: true
|
||||||
|
UnsafeCallOnNullableType:
|
||||||
|
active: false
|
||||||
|
UnsafeCast:
|
||||||
|
active: false
|
||||||
UselessPostfixExpression:
|
UselessPostfixExpression:
|
||||||
active: true
|
active: true
|
||||||
WrongEqualsTypeParameter:
|
WrongEqualsTypeParameter:
|
||||||
@@ -219,6 +234,8 @@ style:
|
|||||||
LoopWithTooManyJumpStatements:
|
LoopWithTooManyJumpStatements:
|
||||||
active: true
|
active: true
|
||||||
maxJumpCount: 1
|
maxJumpCount: 1
|
||||||
|
MagicNumber:
|
||||||
|
active: false
|
||||||
MaxLineLength:
|
MaxLineLength:
|
||||||
active: true
|
active: true
|
||||||
maxLineLength: 120
|
maxLineLength: 120
|
||||||
@@ -232,6 +249,8 @@ style:
|
|||||||
active: true
|
active: true
|
||||||
OptionalAbstractKeyword:
|
OptionalAbstractKeyword:
|
||||||
active: true
|
active: true
|
||||||
|
OptionalReturnKeyword:
|
||||||
|
active: true
|
||||||
OptionalUnit:
|
OptionalUnit:
|
||||||
active: true
|
active: true
|
||||||
OptionalWhenBraces:
|
OptionalWhenBraces:
|
||||||
@@ -240,6 +259,8 @@ style:
|
|||||||
active: true
|
active: true
|
||||||
RedundantVisibilityModifierRule:
|
RedundantVisibilityModifierRule:
|
||||||
active: true
|
active: true
|
||||||
|
ReturnCount:
|
||||||
|
active: false
|
||||||
SafeCast:
|
SafeCast:
|
||||||
active: true
|
active: true
|
||||||
SerialVersionUIDInSerializableClass:
|
SerialVersionUIDInSerializableClass:
|
||||||
@@ -259,5 +280,9 @@ style:
|
|||||||
active: true
|
active: true
|
||||||
UnusedImports:
|
UnusedImports:
|
||||||
active: true
|
active: true
|
||||||
|
UseDataClass:
|
||||||
|
active: false
|
||||||
UtilityClassWithPublicConstructor:
|
UtilityClassWithPublicConstructor:
|
||||||
active: true
|
active: true
|
||||||
|
WildcardImport:
|
||||||
|
active: false
|
||||||
|
|||||||
Reference in New Issue
Block a user