Last active
November 6, 2020 08:59
-
-
Save Barros9/aa8ab4210b8551b6ed503b7bdfd8ddef to your computer and use it in GitHub Desktop.
Configure Detekt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id("io.gitlab.arturbosch.detekt").version("1.14.2") | |
} | |
detekt { | |
toolVersion = "1.14.2" | |
input = files("$projectDir") | |
config = files("$project.projectDir/config/detekt.yml") | |
reports { | |
xml { | |
enabled = true | |
destination = file("$project.projectDir/detekt-report.xml") | |
} | |
html { | |
enabled = true | |
destination = file("$project.projectDir/detekt-report.html") | |
} | |
} | |
} |
Author
Barros9
commented
Nov 6, 2020
- Copy plugins
- Run "gradlew detektGenerateConfig" task to generate default detekt config file
- Copy detekt task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment