Skip to content

Commit

Permalink
Add detekt config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Melnik committed Jul 30, 2024
1 parent 0364c4c commit 1b40f30
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions config/quality/detekt-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

naming:
ClassNaming:
excludes: &testFiles # Allows ticks-named nested test and spec suites.
- "**/*Test.kt"
- "**/*Spec.kt"
MatchingDeclarationName:
excludes: *testFiles # Allows ticks-named top-level test and spec suites.

style:
UnusedPrivateMember:
allowedNames: '(_|ignored|expected|serialVersionUID|about|ABOUT)'
MagicNumber:
ignoreNumbers:
- '-1'
- '0'
- '1'
- '2'
- '3'
MaxLineLength:
maxLineLength: 100
excludeCommentStatements: true
ForbiddenComment:
allowedPatterns: 'TODO:'

complexity:
TooManyFunctions:
excludes:
- '**/*Exts.kt'
- '**/*Extensions.kt'
- '**/*View.kt'
- '**/*Projection.kt'
- '**/*Test.kt'
- '**/*Spec.kt'
LongMethod:
excludes: *testFiles # Allows long names for test and spec methods.

0 comments on commit 1b40f30

Please sign in to comment.