Alex Volanis | 7004a61 | 2018-01-24 10:30:13 -0500 | [diff] [blame] | 1 | |
| 2 | // ================================================================= |
| 3 | // Configure the Gradle code quality plugins here. |
| 4 | // |
| 5 | |
| 6 | apply plugin: 'findbugs' |
| 7 | |
| 8 | findbugs { |
| 9 | ignoreFailures = true |
| 10 | toolVersion = '3.0.1' |
| 11 | sourceSets = [ sourceSets.main ] |
| 12 | effort = 'max' |
| 13 | reportLevel = 'low' |
| 14 | excludeFilter = file('code_quality_tools/findbugs-filter.xml') |
| 15 | } |
| 16 | |
| 17 | tasks.withType(FindBugs) { |
| 18 | reports { |
| 19 | text.enabled = false |
| 20 | html.enabled = true |
| 21 | xml.enabled = false |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | apply plugin: 'pmd' |
| 26 | |
| 27 | pmd { |
| 28 | ignoreFailures = true |
| 29 | toolVersion = '6.0.0' |
| 30 | sourceSets = [ sourceSets.main ] |
Alex Volanis | 7004a61 | 2018-01-24 10:30:13 -0500 | [diff] [blame] | 31 | ruleSets = [ 'java-basic' ] |
| 32 | } |
| 33 | |
| 34 | tasks.withType(Pmd) { |
| 35 | reports { |
| 36 | html.enabled = true |
| 37 | xml.enabled = false |
| 38 | } |
| 39 | } |