Last active
April 16, 2020 11:47
-
-
Save k1dbl4ck/18ebd5201d0e899aa190c2f040345965 to your computer and use it in GitHub Desktop.
ktlint gradle setup
This file contains 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
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