proper regexp for NLS trailing comments

"Anuerin Diaz" <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Hi,

  I am using checkstyle version 4.3 and trying to use legalComment attribute of
the Misc/TrailingComment check to exempt all trailing comments for NLS strings
(//$NON-NLS-1$) and have tried to use the following configuration which
(according to eclipse-cs) matches the lines:

        <module name="TrailingComment">
            <property name="severity" value="info"/>
            <property name="legalComment" value=".*//\$NON-NLS.*"/>
        </module>

  I have also tried the following regexp to see if they would work but
to no avail:

   value=".*//\\$NON-NLS.*"
   value=".*//\\\\$NON-NLS.*"
   value=".*//.*NON-NLS-.*"
   value=".*\/\/.*NON-NLS-.*"

  Some pointers on where I messed up is greatly appreciated. Thanks.

ciao!
-- 

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.