Low commit activity in last 3 years
No release in over a year
A short description of danger-kotlin_detekt. This is a forked version to include detekt rule name.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
~> 2.14
= 3.0.7
>= 0
~> 13.0
~> 3.4
>= 0

Runtime

 Project Readme

kotlin_detekt

Detekt files of a gradle based Android project. This is done using the Android's Detekt tool. Results are passed out as tables in markdown.

Running KotlinDetekt with its basic configuration
kotlin_detekt.detekt
Running KotlinDetekt with a specific gradle task
kotlin_detekt.gradle_task = "detektCheckMyFlavorDebug"
kotlin_detekt.detekt
Running KotlinDetekt for a specific severity level and up
# options are ["warning", "error"]
kotlin_detekt.severity = "error"
kotlin_detekt.detekt

Attributes

report_file - Location of Detekt report file If your Detekt task outputs to a different location, you can specify it here. Defaults to "build/reports/detekt/detekt-checkstyle.xml".

gradle_task - Custom gradle task to run. This is useful when your project has different flavors. Defaults to "detektCheck".

severity - Defines the severity level of the execution. Selected levels are the chosen one and up. Possible values are "Warning", "Error" or "Fatal". Defaults to "Warning".

filtering - Enable filtering Only show messages within changed files.

Additionally, you can further filter to only the modified lines by setting the filtering_lines parameter to true.

skip_gradle_task - Skip gradle task

Methods

detekt - Calls Detekt task of your gradle project. It fails if gradlew cannot be found inside current directory. It fails if severity level is not a valid option. It fails if xmlReport configuration is not set to true in your build.gradle file.