[
https://jira.codehaus.org/browse/MCHECKSTYLE-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Lundberg closed MCHECKSTYLE-185.
---------------------------------------
Resolution: Fixed
Assignee: Dennis Lundberg
I have applied your patch in
[r1438948|http://svn.apache.org/viewvc?view=revision&revision=1438948] together
with a couple of other fixes to the handling of test classes. Thanks!
> Empty checkstyle-results.xml in a tests-only project
> ----------------------------------------------------
>
> Key: MCHECKSTYLE-185
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-185
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.7, 2.8, 2.9, 2.9.1
> Reporter: Peter Janes
> Assignee: Dennis Lundberg
> Attachments: check-tests-only.patch
>
>
> MCHECKSTYLE-153 fixed canGenerateReport() being able to generate a report for
> projects, but still doesn't add the test sources. This leads to an empty
> checkstyle-results.xml file. The attached patch against 2.10-SNAPSHOT fixes
> the problem by not short-circuiting addFilesToProcess if there's no source
> directory.
> (A workaround until this bug is fixed is to create an empty
> ${project.build.sourceDirectory}.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira