Changeset 32063 in osm


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

Location:
applications/editors/josm/plugins/mapillary
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/.project

    r31798 r32063  
    22<projectDescription>
    33        <name>JOSM-Mapillary</name>
    4         <comment></comment>
    5         <projects>
    6         </projects>
     4        <comment>Allows the user to work with pictures hosted at mapillary.com</comment>
     5        <projects/>
     6        <natures>
     7                <nature>org.eclipse.jdt.core.javanature</nature>
     8                <nature>org.sonarlint.eclipse.core.sonarlintNature</nature>
     9                <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
     10        </natures>
    711        <buildSpec>
    812                <buildCommand>
    913                        <name>org.eclipse.jdt.core.javabuilder</name>
    10                         <arguments>
    11                         </arguments>
     14                        <arguments/>
     15                </buildCommand>
     16                <buildCommand>
     17                        <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
     18                        <arguments/>
    1219                </buildCommand>
    1320        </buildSpec>
    14         <natures>
    15                 <nature>org.eclipse.jdt.core.javanature</nature>
    16                 <nature>org.sonarlint.eclipse.core.sonarlintNature</nature>
    17         </natures>
     21        <linkedResources/>
    1822</projectDescription>
  • 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.