Re: proper regexp for NLS trailing comments
"Anuerin Diaz" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Any suggestions? This is still making me tear my hair (whatever is remaining) out. Thanks. ciao! On 6/29/07, Anuerin Diaz <[email protected]> wrote: > 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 > -- "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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/