You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2014/08/22 14:15:10 UTC
[jira] (MCHECKSTYLE-102) errors in site for regexp checks with
"message" property
[ https://jira.codehaus.org/browse/MCHECKSTYLE-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MCHECKSTYLE-102.
--------------------------------------
Resolution: Incomplete
Assignee: Robert Scholte
No feedback, so closing it.
Btw, with this xml I get the following exception:
{noformat}
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Property 'test' in module Regexp does not exist, please check the documentation
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:142)
at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:168)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:184)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:158)
... 24 more
{noformat}
It's not a valid example anymore, a lot has changed since then.
> errors in site for regexp checks with "message" property
> --------------------------------------------------------
>
> Key: MCHECKSTYLE-102
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-102
> Project: Maven Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: Windows, JDK1.5, Maven 1.7
> Reporter: Benjamin Pochat
> Assignee: Robert Scholte
> 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 :
> {code:xml}<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>{code}
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)