You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2014/07/13 11:07: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 ]

Herve Boutemy updated MCHECKSTYLE-102:
--------------------------------------

    Description: 
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.

  was:
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.


> 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
>         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)