Skip to content

Instantly share code, notes, and snippets.

@alistairsykes
Last active October 30, 2019 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alistairsykes/0ef606f1e4af0525cf42132f382fe270 to your computer and use it in GitHub Desktop.
Save alistairsykes/0ef606f1e4af0525cf42132f382fe270 to your computer and use it in GitHub Desktop.
configurations {
// ...
xmlchecker
}
dependencies {
// ...
xmlchecker fileTree(dir: "$project.rootDir/.../xmlchecker/libs", include: ['*.jar'])
}
check.dependsOn 'xmlchecker'
// ...
task xmlchecker(type: JavaExec, group: 'verification') {
description = 'Check XML for code smells.'
classpath = configurations.xmlchecker
main = 'uk.co.brightec.xmlcheck.MainKt'
args "$projectDir/src/main/res/layout"
args '--no-fail-on-empty'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment