Created
March 7, 2019 03:31
-
-
Save artem-zinnatullin/c008733332fc3960394969e71ad60d22 to your computer and use it in GitHub Desktop.
detekt-config.yml for Lyft Android Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoCorrect: true | |
failFast: false | |
test-pattern: # Configure exclusions for test sources | |
active: true | |
patterns: # Test file regexes | |
- '.*/test/.*' | |
- '.*Test.kt' | |
- '.*Spec.kt' | |
exclude-rule-sets: | |
- 'comments' | |
exclude-rules: | |
- 'NamingRules' | |
- 'MagicNumber' | |
- 'LateinitUsage' | |
- 'StringLiteralDuplication' | |
- 'SpreadOperator' | |
- 'TooManyFunctions' | |
- 'ReturnCount' | |
- 'ReturnCount' | |
build: | |
active: true | |
maxIssues: 1 | |
code-smell: | |
active: false | |
processors: | |
active: false | |
# https://arturbosch.github.io/detekt/comments.html | |
comments: | |
active: false | |
# https://arturbosch.github.io/detekt/complexity.html | |
complexity: | |
active: false | |
# https://arturbosch.github.io/detekt/empty-blocks.html | |
empty-blocks: | |
active: false | |
# https://arturbosch.github.io/detekt/exceptions.html | |
exceptions: | |
active: false | |
# https://arturbosch.github.io/detekt/formatting.html | |
formatting: | |
active: false | |
# https://arturbosch.github.io/detekt/naming.html | |
naming: | |
active: false | |
# https://arturbosch.github.io/detekt/performance.html | |
performance: | |
active: true | |
ForEachOnRange: | |
active: true | |
UnnecessaryTemporaryInstantiation: | |
active: true | |
# https://arturbosch.github.io/detekt/potential-bugs.html | |
potential-bugs: | |
active: true | |
DuplicateCaseInWhenExpression: | |
active: true | |
EqualsAlwaysReturnsTrueOrFalse: | |
active: true | |
EqualsWithHashCodeExist: | |
active: true | |
ExplicitGarbageCollectionCall: | |
active: true | |
InvalidRange: | |
active: true | |
IteratorHasNextCallsNextMethod: | |
active: true | |
UselessPostfixExpression: | |
active: true | |
WrongEqualsTypeParameter: | |
active: true | |
# https://arturbosch.github.io/detekt/style.html | |
style: | |
active: true | |
DataClassContainsFunctions: | |
active: true | |
FunctionOnlyReturningConstant: | |
active: true | |
LoopWithTooManyJumpStatements: | |
active: true | |
MagicNumber: | |
active: false | |
MandatoryBracesIfStatements: | |
active: true | |
MaxLineLength: | |
active: false | |
maxLineLength: 110 | |
excludePackageStatements: true | |
excludeImportStatements: true | |
excludeCommentStatements: true | |
MayBeConst: | |
active: true | |
ModifierOrder: | |
active: true | |
NoTabs: | |
active: true | |
PreferToOverPairSyntax: | |
active: true | |
RedundantVisibilityModifierRule: | |
active: true | |
ReturnCount: | |
active: false | |
SafeCast: | |
active: true | |
SpacingBetweenPackageAndImports: | |
active: true | |
UnnecessaryParentheses: | |
active: true | |
UntilInsteadOfRangeTo: | |
active: true | |
UnusedImports: | |
active: true | |
UnusedPrivateClass: | |
active: true | |
EqualsNullCall: | |
active: true | |
UnnecessaryApply: | |
# Disabled due to too many false-positives: https://github.com/arturbosch/detekt/issues/1305 | |
active: false | |
UnnecessaryLet: | |
active: true | |
UnusedPrivateMember: | |
active: true | |
allowedNames: "(_|ignored|expected)" | |
UseDataClass: | |
active: true | |
VarCouldBeVal: | |
active: true | |
WildcardImport: | |
active: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment