java - Save output from PMD Eclipse plugin -
i know pmd can exectued on command line , output file specified there, reasons saving eclipse plugin results file make life easier.
is there way this? i've hunted around haven't found solution.
this functionality bit hidden, exists.
- go "window -> preferences -> pmd -> reports" , select report format, want, e.g. "text".
- right-click on project , select "pmd -> check code".
- right-click on project , select "pmd -> generate reports".
now, should have new folder reports
in project, contains file pmd-report.txt
.
it seems, report created, if there violations, hence 2nd step (e.g. there must @ least 1 violation marked in project).
edit: assumes, using pmd-eclipse plugin update site: https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ - note, there alternative eclipse-pmd plugin available.
Comments
Post a Comment