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.
YAML file to configure Detekt plugin for Kotlin projects
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment