Quality-Tools-for-Android icon indicating copy to clipboard operation
Quality-Tools-for-Android copied to clipboard

PMD check doesn't seem to work (for gradle)

Open lkjh654 opened this issue 12 years ago • 2 comments

Steps to reproduce:

  1. execute command 'gradle pmd'

Expected behaviour: PMD report is generated and present in /report directory

Actual result: no PMD result is present. Task ends with 'UP-TO-DATE' status:

:android-sample:pmd UP-TO-DATE

lkjh654 avatar Jan 02 '14 09:01 lkjh654

changing source = fileTree(android.sourceSets.main.java.srcDirs)

to: source = fileTree('src/main/java/')

Fixes the issue.

lkjh654 avatar Jan 16 '14 12:01 lkjh654

Your workaround worked for me too.

gounthar avatar Jul 03 '14 16:07 gounthar