Ignore:
Timestamp:
2016-02-11T23:17:10+01:00 (9 years ago)
Author:
floscher
Message:

[mapillary] Analyze code with PMD in Eclipse and in Gradle builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/build.gradle

    r31977 r32063  
    33apply plugin: 'jacoco'
    44apply plugin: 'java'
     5apply plugin: 'pmd'
    56apply plugin: 'project-report'
    67
     
    6465  project {
    6566    name = 'JOSM-Mapillary'
    66     natures 'org.sonarlint.eclipse.core.sonarlintNature'
     67    comment = property('plugin.description')
     68    natures 'org.sonarlint.eclipse.core.sonarlintNature', 'ch.acanda.eclipse.pmd.builder.PMDNature'
     69    buildCommand 'ch.acanda.eclipse.pmd.builder.PMDBuilder'
    6770  }
     71}
     72eclipseClasspath.dependsOn cleanEclipseClasspath
     73eclipseProject.dependsOn cleanEclipseProject
     74tasks.eclipse.dependsOn = ['eclipseClasspath', 'eclipseProject']
     75
     76pmd {
     77  toolVersion '5.4.1'
     78  ignoreFailures true
     79  targetJdk sourceCompatibility
     80  ruleSetFiles = files('.settings/pmd-ruleset.xml')
    6881}
    6982
     
    7992  toolVersion = "3.0.1"
    8093  ignoreFailures = true
    81   effort = "min"
    82   reportLevel = "high"
     94  effort = "max"
     95  reportLevel = "low"
    8396}
    8497tasks.withType(FindBugs) {
Note: See TracChangeset for help on using the changeset viewer.