Re: suppression filter regex

"Ben Dean" <[email protected]> Tue, 2 Dec 2008 08:17:59 -0500
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <E136FE1D195A7B4AAE3E285E94832358010684F91D@munexch.ontariosystems.com>
That would work to have to suppress the JavadocType check for the api package. However I want to suppress the JavadocType check for everything that is not in the api package. The files that would match "[\\/]api[\\/]" are the only ones that I want the rule applied to.

-- Ben

On Tue, 2 Dec 2008 08:50:31 +1100, "Oliver Burn" <[email protected]> wrote:
> 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 received 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=/