Skip to content

Commit

Permalink
Added performance and potential-bugs rule sets
Browse files Browse the repository at this point in the history
  • Loading branch information
imashnake0 committed Jan 21, 2024
1 parent ddbfbc1 commit 551dd2b
Showing 1 changed file with 70 additions and 2 deletions.
72 changes: 70 additions & 2 deletions config/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,78 @@ naming:
VariableNaming:
active: true

performance:
ArrayPrimitive:
active: true
CouldBeSequence:
active: true
ForEachOnRange:
active: true
UnnecessaryPartOfBinaryExpression:
active: true
UnnecessaryTemporaryInstantiation:
active: true

potential-bugs:
AvoidReferentialEquality:
active: true
CastToNullableType:
active: true
Deprecation:
active: true
DontDowncastCollectionTypes:
active: true
DoubleMutabilityForCollection:
active: true
ElseCaseInsteadOfExhaustiveWhen:
active: true
EqualsAlwaysReturnsTrueOrFalse:
active: true
EqualsWithHashCodeExist:
active: true
ImplicitDefaultLocale:
active: true
ImplicitUnitReturnType:
active: true
InvalidRange:
active: true
IteratorHasNextCallsNextMethod:
active: true
IteratorNotThrowingNoSuchElementException:
active: true
LateinitUsage:
active: true
MapGetWithNotNullAssertionOperator:
active: true
MissingPackageDeclaration:
active: true
NullCheckOnMutableProperty:
active: true
NullableToStringCall:
active: true
UnconditionalJumpStatementInLoop:
active: true
UnnecessaryNotNullCheck:
active: true
UnnecessaryNotNullOperator:
active: true
UnnecessarySafeCall:
active: true
UnreachableCode:
active: true
UnsafeCallOnNullableType:
active: true
UnsafeCast:
active: true
UnusedUnaryOperator:
active: true
UselessPostfixExpression:
active: true
WrongEqualsTypeParameter:
active: true

style:
UnusedImports:
active: true
WildcardImport:
active: true
excludeImports:
- "kotlin.math.*"

0 comments on commit 551dd2b

Please sign in to comment.