Skip to content

Instantly share code, notes, and snippets.

@renanalencar
Created July 8, 2025 14:31
Show Gist options
  • Select an option

  • Save renanalencar/6b1be3e30d4112f28290e53a3651deaf to your computer and use it in GitHub Desktop.

Select an option

Save renanalencar/6b1be3e30d4112f28290e53a3651deaf to your computer and use it in GitHub Desktop.

Revisions

  1. renanalencar renamed this gist Jul 8, 2025. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. renanalencar created this gist Jul 8, 2025.
    39 changes: 39 additions & 0 deletions detekt.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    style:
    MagicNumber:
    active: true
    ignoreNumbers: [-1, 0, 1, 2, 100, 120]
    ignoreHashCodeFunction: true

    MaxLineLength:
    active: true
    maxLineLength: 120
    excludePackageStatements: true
    excludeImportStatements: true

    OptionalUnit:
    active: true

    WildcardImport:
    active: true
    excludeImports:
    - "java.util.*"
    - "kotlinx.android.synthetic.**"

    SpacingBetweenPackageAndImports:
    active: true

    formatting:
    active: true
    autoCorrect: true
    indentation:
    indentSize: 4
    continuationIndentSize: 4
    trailingCommaOnCallSite:
    active: true
    trailingCommaOnDeclarationSite:
    active: true
    importOrdering:
    active: true
    layout: ['*,^']
    parameterWrapping:
    active: false # para evitar conflito com Compose + listas encadeadas