Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.