errors in site for regexp checks with "message" property
--------------------------------------------------------
Key: MCHECKSTYLE-102
URL: http://jira.codehaus.org/browse/MCHECKSTYLE-102
Project: Maven 2.x Checkstyle Plugin
Issue Type: Bug
Affects Versions: 2.2
Environment: Windows, JDK1.5, Maven 1.7
Reporter: Benjamin Pochat
Attachments: screenshot.JPG
Hi,
It seems that the site built by the CheckStyle plugin is wrong if we use regexp
check containing the "message" property.
The error is in the total of violations by rule ("Rules" part). The number of
violation is always null for such checks, even if checkstyle shows such
violations in the "Details" part.
For instance, i tried this check :
<module name="Checker">
<module name="TreeWalker">
<module name="Regexp">
<property name="format" value="(.*)(\bEvenement\b)(.*)"/>
<property name="illegalPattern" value="true"/>
<property name="ignoreComments" value="true"/>
<property name="test" value="true"/>
</module>
</module>
</module>
A screen shot of the site is given as an attachment.
If I remove the message property in the check definition, the site is correct.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira