Skip to content

Instantly share code, notes, and snippets.

@k1dbl4ck
Last active April 16, 2020 11:47
Show Gist options
  • Save k1dbl4ck/18ebd5201d0e899aa190c2f040345965 to your computer and use it in GitHub Desktop.
Save k1dbl4ck/18ebd5201d0e899aa190c2f040345965 to your computer and use it in GitHub Desktop.
ktlint gradle setup
apply plugin: "org.jlleitschuh.gradle.ktlint"
ktlint {
version = "0.34.2"
debug = true
verbose = true
android = false
outputToConsole = true
reporters = [ReporterType.PLAIN, ReporterType.CHECKSTYLE]
ignoreFailures = true
enableExperimentalRules = true
additionalEditorconfigFile = file("/some/additional/.editorconfig")
kotlinScriptAdditionalPaths {
include fileTree("scripts/")
}
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment