Re: suppression filter regex

"Oliver Burn" <[email protected]> Tue, 2 Dec 2008 08:50:31 +1100
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
try

    <suppress checks="JavadocType" files="[/\\]api[/\\]"/>

The "[/\\]" makes it work on both Windows and Unix.

On Tue, Dec 2, 2008 at 07:06, Ben Dean <[email protected]> wrote:

>  I've been trying to use a regular expression to suppress various
> checkstyle javadoc modules for all files **except** ones that are in an
> api package. I've tested the following regex with some online java regex
> testing applets and it seems to work there but I cannot get it to work when
> I run checkstyle the suppression filter looks like this:
>
>
>
>       <suppress checks="JavadocType" files="^([^a]|a[^p]|ap[^i])*$" />
>
>
>
> Does anyone know a way to suppress modules for every file except ones that
> match a given pattern (in other words, only apply to files that match the
> pattern). This is pretty much the opposite of what the suppression filter
> does normally.
>
>
>
> -- Ben
>
> *Attention: This message and all attachments are private and may contain
> information that is confidential and privileged. If you receive this message
> in error, please notify the sender by reply email and delete the message
> immediately.*
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user