nested SuppressionCommentFilter

Zardosht Hodaie <[email protected]> Fri, 1 May 2009 23:52:34 +0200
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Hi all,

we have defined three different SuppressionCommentFilter s in our
CheckStyle configurations. Now the problem is, when these comment are
nested in each other the inner comments do not funtion any more.
For example:

// CheckStyle stop comment 1
....
....
   // Check start comment 2

       void foo(){
           //i expect CheckStyle warnings here.
           //but it does not funtion
        }

   //CheckStyle stop comment 2

.....
.....
// CheckStyle start comment 1

I expect CheckStyle to be enabled in inner comment block, but it is
not. I tested it without nesting the comments and it funtion
correctly. The case is, we have a generated class, but some methods
inside it are manually changed and we want check style to be enabled
for manual code.
I would appreciate any helps about it.

Thanks in advance,
Zardosht Hodaie.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf