task ktlint(type: JavaExec, group: "verification") { description = "Check Kotlin code style." classpath = configurations.ktlint main = "com.github.shyiko.ktlint.Main" args "--android", "--color", "--reporter=plain", "--reporter=checkstyle,output=${buildDir}/reports/ktlint-results.xml", "src/**/*.kt" ignoreExitValue true } ポイントは CI(Bitrise) 用に checkstyle 形式での出力を追加しているのと、チェックにひっかかっても異常終了させない(ignoreE
