Re: Can module configurations be overridden?
"Emerson Farrugia" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks! Sounds great. On 28/01/2008, Oliver Burn <[email protected]> wrote: > I'd strongly suggest trying out the latest version of Checkstyle in the SVN > trunk. > > To quote from the release notes: > > The 5.x release is developed using Java 5 and requires a Java 5 > platform to run. If you need run a Java 1.4 or earlier, then use > a Checkstyle 4.x release. As such, features for earlier versions > of Java will be dropped over time. > > New Features: > > New check GenericWhitespace > for ensuring the whitespace around the Generic tokens < and > > are correct to the <i>typical</i> convention. > > New check JavadocPackage > for ensuring that each Java package has a Javadoc > comment. Replaces the check PackageHtml which has been > removed. (Bug 1228207) > > Enhanced the JavadocMethod > check to not require Javadoc if the method is tagged with the > @Override annotation. > > > On Jan 26, 2008 4:57 AM, Emerson Farrugia <[email protected]> > wrote: > > > > > Hi, > > > > I'm trying to disable the WhitespaceAround audit event for generics. > > The problem is that I want the WhitespaceAround check to be enabled > > for the non-generic tokens. Is it possible for the module > > configuration to be overridden, like so? > > > > > > <module name="WhitespaceAround"> > > <property name="severity" value="warning" /> > > </module> > > > > <module name="WhitespaceAround"> > > <property name="severity" value="ignore" /> > > <property name="tokens" > > value="GENERIC_START, GENERIC_END, > TYPE_EXTENSION_AND, WILDCARD_TYPE" /> > > </module> > > > > > > or do I need to manually enumerate all the other tokens in the first > > module configuration? > > > > Thanks, > > Emerson > > > > > > P.S. I've never seen type parameters wrapped in whitespace. I don't > > know why this is a default setting on the generic tokens. There is no > > whitespace in generics code on Sun's site, in the SCJP book, in the > > JLS, etc. > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Checkstyle-user mailing list > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/checkstyle-user > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Checkstyle-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/checkstyle-user > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/