classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view


Róbert Kohányi
I'm using the latest Checkstyle Eclipse (Indigo) plugin ( and I can't seem to get to work the SuppressWithNearbyComment check.

E.g. the following does not work as expected (Checkstyle labels this with a warning in Eclipse):

// @do-not-checkstyle MagicNumber
int x = 234234;

My check looks like this:
<module name="SuppressWithNearbyCommentFilter">
    <property name="commentFormat" value="@do-not-checkstyle (.*)"/>
    <property name="checkFormat" value="$1"/>

I've tried different commentFormats, but nothing worked.

Also, the TreeWalker module has a FileContentsHolder child module.

(I've attached the actual checkstyle.xml I'm using.)

Any ideas?

Thanks in advance!

Kohányi Róbert

All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
Checkstyle-user mailing list
[hidden email]

checkstyle.xml (10K) Download Attachment