suppressing checks

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

suppressing checks

Andy Kriger
Hello,

I have a couple questions about suppressing checks...
1) Is it possible to suppress checks for entire packages or paths, or is it just file names?
2) Is it possible to suppress checks using single-line comments for an entire class or must you use block comments?
3) Is it possible to use both single-line comments and block comments?

Thank you

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Checkstyle-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
Reply | Threaded
Open this post in threaded view
|

Re: suppressing checks

Oliver Burn
Re 1 - using the SuppressionFilter it is possible to suppress entire packages or paths. For example:

  <!-- Suppressions for test code -->
  <suppress checks="ImportControl" files="[/\\]test[/\\]java[/\\]"/>
  <suppress checks="JavadocMethod" files="[/\\]test[/\\]java[/\\]"/>
  <suppress checks="MagicNumber" files="[/\\]test[/\\]java[/\\]"/>

  <!-- Ignore generated code -->
  <suppress checks="." files="[/\\]shared[/\\]bindings[/\\]"/>


On Fri, Jun 19, 2009 at 00:59, Andy Kriger <[hidden email]> wrote:
Hello,

I have a couple questions about suppressing checks...
1) Is it possible to suppress checks for entire packages or paths, or is it just file names?
2) Is it possible to suppress checks using single-line comments for an entire class or must you use block comments?
3) Is it possible to use both single-line comments and block comments?

Thank you

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Checkstyle-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Checkstyle-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user