[GRADLE-2190] PMD Plugin ignores its "ignoreFailures" setting Created: 21/Mar/12  Updated: 04/Jan/13  Resolved: 24/Apr/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-9
Fix Version/s: 1.0-rc-1

Type: Bug
Reporter: Jens Hausherr Assignee: Unassigned
Resolution: Fixed Votes: 3


 Description   

The PMD plugin ignores its documented behaviour to continue the build if "project.pmd.ignoreFailures" is set to true.

The following configuration should work (=continue the build on PMD check failures) according to the docs:

apply plugin: 'pmd'

pmd {
    ignoreFailures = true
}

With this configuration pmdMain stops the build on errors.
The following snippet achieves the documented behaviour:

[pmdMain,pmdTest]*.ignoreFailures = project.pmd.ignoreFailures

The plugin should behave as documented, so IMHO it is a bug.


Generated at Wed Jun 30 12:15:10 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.