Detekt

Version: 1.23.8darwinlinuxwindows

##Your companion for cleaner Kotlin

detekt helps you write cleaner Kotlin code so you can focus on what matters the most building amazing software.

Integrate in any project

detekt comes with a set of plugins that helps you configure it easily in your Gradle, Maven, Bazel, … build. Enjoy static analysis on Android, JVM, JS, Native and Multiplatform projects out of the box.

Easy to extend

detekt can be easily extended with custom rules that helps you track and fix anti-patterns in your codebase.

Installation Instructions

Linux
Depends on:java

Download Detekt
{
  "url": "{{ .SVar `.tool.detekt.download.url` }}",
  "destination_folder": "{{ .PDownloads }}",
  "output_filename": "{{ .SVar `.tool.detekt.download.filename` }}",
  "overwrite": false
}
Extract Detekt Release
{
  "destination": "{{ .PTools }}/detekt/{{ .SVar `.tool.detekt.download.version` }}",
  "max_file_size": 0,
  "skip_symlinks": false,
  "preserve_permissions": true,
  "remove_existing": true,
  "source": "{{ .PDownloads }}/{{ .SVar `.tool.detekt.download.filename` }}"
}
Move files up one level to simplify directory structure
{
  "source": "{{ .PTools }}/detekt/{{ .SVar `.tool.detekt.download.version` }}/*/*",
  "destination": "{{ .PTools }}/detekt/{{ .SVar `.tool.detekt.download.version` }}",
  "overwrite_duplicates": false
}

MacOS
Depends on:java

Download Detekt
{
  "url": "{{ .SVar `.tool.detekt.download.url` }}",
  "destination_folder": "{{ .PDownloads }}",
  "output_filename": "{{ .SVar `.tool.detekt.download.filename` }}",
  "overwrite": false
}
Extract Detekt Release
{
  "destination": "{{ .PTools }}/detekt/{{ .SVar `.tool.detekt.download.version` }}",
  "max_file_size": 0,
  "skip_symlinks": false,
  "preserve_permissions": true,
  "remove_existing": true,
  "source": "{{ .PDownloads }}/{{ .SVar `.tool.detekt.download.filename` }}"
}
Move files up one level to simplify directory structure
{
  "source": "{{ .PTools }}/detekt/{{ .SVar `.tool.detekt.download.version` }}/*/*",
  "destination": "{{ .PTools }}/detekt/{{ .SVar `.tool.detekt.download.version` }}",
  "overwrite_duplicates": false
}

Binaries