Peter Janes created MCHECKSTYLE-185:
---------------------------------------

             Summary: 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.9.1, 2.9, 2.8, 2.7
            Reporter: Peter Janes
         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

        

Reply via email to