Re: suppressing checks
Oliver Burn <[email protected]> Fri, 19 Jun 2009 10:09:51 +1000
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user