Skip to content

Instantly share code, notes, and snippets.

@rafaeltoledo
Last active March 18, 2017 23:59
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 rafaeltoledo/5a221a0359720341db31 to your computer and use it in GitHub Desktop.
Save rafaeltoledo/5a221a0359720341db31 to your computer and use it in GitHub Desktop.
task pmd(type: Pmd) {
ignoreFailures = false
ruleSetFiles = files("${project.rootDir}/config/pmd-ruleset.xml")
ruleSets = []
source 'src'
include '**/*.java'
exclude '**/gen/**'
reports {
xml.enabled = false
html.enabled = true
html {
destination "$project.buildDir/reports/pmd/pmd.html"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment