On Wednesday 06 Aug 2003 13:33, S. Radhakrishnan wrote:
> Hi,
>
> thanks for your solution.. that works fine.. now i am facing with a
> different problem.
> I am having custom checkstyle properties which will look like,
>
> checkstyle.lcurly.type = nl
> checkstyle.lcurly.method = nl
> checkstyle.lcurly.other = nl
> checkstyle.rcurly = alone
> checkstyle.allow.tabs = false
> checkstyle.allow.protected = false
> checkstyle.allow.package = false
> checkstyle.allow.no.author = false
> checkstyle.max.line.len = 80
>
> Now, building the checkstyle report using Maven 10, it gives me the
> following exception.
Checkstyle has changed in Maven beta10 ... it now uses a new XML based config
file. See http://checkstyle.sourceforge.net/ for details. I've attached a
sample file (if it gets through to the mailing list).
--
Andy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Package Names 1.0//EN"
"http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
<module name="Checker">
<!-- Check that package.html exists -->
<module name="PackageHtml"/>
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<!-- Import checks -->
<module name="AvoidStarImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<!-- Modifier checks -->
<module name="RedundantModifier">
<property name="tokens" value="METHOD_DEF"/>
</module>
<module name="VisibilityModifier">
<property name="packageAllowed" value="true"/>
<property name="protectedAllowed" value="true"/>
</module>
<!-- Whitespace checks -->
<module name="ParenPad">
<property name="option" value="nospace"/>
</module>
<!-- Javadoc checks -->
<module name="JavadocType">
<property name="versionFormat" value="\$Revision.*\$"/>
</module>
<!-- Blocks -->
<module name="LeftCurly">
<property name="option" value="nl"/>
</module>
<module name="RightCurly">
<property name="option" value="alone"/>
</module>
<module name="OperatorWrap">
<property name="option" value="eol"/>
</module>
<module name="NeedBraces"/>
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
<!-- Naming conventions -->
<module name="ConstantName"/>
<module name="ParameterName">
<property name="format" value="^[a-z][a-zA-Z0-9_]*$"/>
</module>
<module name="StaticVariableName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
</module>
<module name="LocalVariableName">
<property name="format" value="^[a-z][a-zA-Z0-9_]*$"/>
</module>
<module name="MemberName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
</module>
<!-- Size Violations -->
<module name="FileLength">
<property name="max" value="2000"/>
</module>
<module name="LineLength">
<property name="max" value="320"/>
</module>
<module name="MethodLength">
<property name="max" value="150"/>
</module>
</module>
</module>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]