Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove default config entries in detekt.yml #3239

Merged
merged 1 commit into from
Nov 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 2 additions & 42 deletions config/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ exceptions:
active: true
ReturnFromFinally:
active: true
SwallowedException:
active: false
ThrowingExceptionFromFinally:
active: true
ThrowingExceptionsWithoutMessageOrCause:
Expand All @@ -68,78 +66,40 @@ formatting:
ParameterListWrapping:
active: false

naming:
MemberNameEqualsClassName:
active: true
VariableNaming:
active: true
variablePattern: '[a-z][A-Za-z0-9]*'
privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'

performance:
ArrayPrimitive:
active: true

potential-bugs:
EqualsAlwaysReturnsTrueOrFalse:
active: true
InvalidRange:
active: true
IteratorHasNextCallsNextMethod:
active: true
IteratorNotThrowingNoSuchElementException:
active: true
MissingWhenCase:
active: true
RedundantElseInWhen:
active: true
UnsafeCallOnNullableType:
active: true
UnsafeCast:
active: true
excludes: ['**/test/**', '**/*.Test.kt', '**/*.Spec.kt']
UselessPostfixExpression:
active: true
WrongEqualsTypeParameter:
active: true

style:
ClassOrdering:
active: true
CollapsibleIfStatements:
active: true
EqualsNullCall:
active: true
ForbiddenComment:
active: true
values: ['TODO:', 'FIXME:', 'STOPSHIP:', '@author']
FunctionOnlyReturningConstant:
active: true
LoopWithTooManyJumpStatements:
active: true
LibraryCodeMustSpecifyReturnType:
active: true
excludes: ['**/*.kt']
includes: ['**/detekt-api/src/main/**/api/*.kt']
MaxLineLength:
active: true
excludes: ['**/test/**', '**/*.Test.kt', '**/*.Spec.kt']
excludeCommentStatements: true
MagicNumber:
ignoreHashCodeFunction: true
ignorePropertyDeclaration: true
ignoreAnnotation: true
ignoreEnums: true
ignoreNumbers: ['-1', '0', '1', '2', '100', '1000']
MayBeConst:
active: true
NestedClassesVisibility:
active: true
ProtectedMemberInFinalClass:
active: true
RedundantVisibilityModifierRule:
active: true
ReturnCount:
active: true
excludeGuardClauses: true
SpacingBetweenPackageAndImports:
active: true
Expand Down