258 lines
15 KiB
XML
258 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~ Hibernate, Relational Persistence for Idiomatic Java
|
|
~
|
|
~ Copyright (c) 2013, Red Hat Inc. or third-party contributors as
|
|
~ indicated by the @author tags or express copyright attribution
|
|
~ statements applied by the authors. All third-party contributions are
|
|
~ distributed under license by Red Hat Inc.
|
|
~
|
|
~ This copyrighted material is made available to anyone wishing to use, modify,
|
|
~ copy, or redistribute it subject to the terms and conditions of the GNU
|
|
~ Lesser General Public License, as published by the Free Software Foundation.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
|
~ for more details.
|
|
~
|
|
~ You should have received a copy of the GNU Lesser General Public License
|
|
~ along with this distribution; if not, write to:
|
|
~ Free Software Foundation, Inc.
|
|
~ 51 Franklin Street, Fifth Floor
|
|
~ Boston, MA 02110-1301 USA
|
|
-->
|
|
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
|
|
<module name="Checker">
|
|
|
|
<module name="TreeWalker">
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
General regex checks as part of the TreeWalker
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<!--
|
|
<module name="Regexp">
|
|
<property name="format"
|
|
value="\A(/\*\n \* Hibernate, Relational Persistence for Idiomatic Java\n \*\n \* Copyright \(c\) \d{4}(-\d{4})?, Red Hat(,)? Inc. (and/or its affiliates )?or third-party contributors as\n \* indicated by the @author tags or express copyright attribution\n \* statements applied by the authors. All third-party contributions are\n \* distributed under license by Red Hat(,)? Inc.\n \*\n \* This copyrighted material is made available to anyone wishing to use, modify,\n \* copy, or redistribute it subject to the terms and conditions of the GNU\n \* Lesser General Public License, as published by the Free Software Foundation.\n \*\n \* This program is distributed in the hope that it will be useful,\n \* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n \* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License\n \* for more details.\n \*\n \* You should have received a copy of the GNU Lesser General Public License\n \* along with this distribution; if not, write to:\n \* Free Software Foundation, Inc.\n \* 51 Franklin Street, Fifth Floor\n \* Boston, MA 02110-1301 USA\n \*/)|(/\* ?\n \* Hibernate, Relational Persistence for Idiomatic Java\n \* ?\n \* JBoss, Home of Professional Open Source\n \* Copyright \d{4} Red Hat Inc. and/or its affiliates and other contributors\n \* as indicated by the @authors tag. All rights reserved.\n \* See the copyright.txt in the distribution for a\n \* full listing of individual contributors.\n \*\n \* This copyrighted material is made available to anyone wishing to use,\n \* modify, copy, or redistribute it subject to the terms and conditions\n \* of the GNU Lesser General Public License, v. 2.1.\n \* This program is distributed in the hope that it will be useful, but WITHOUT A\n \* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n \* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.\n \* You should have received a copy of the GNU Lesser General Public License,\n \* v.2.1 along with this distribution; if not, write to the Free Software\n \* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,\n \* MA 02110-1301, USA.\n \*/)|(/\*\n \* Hibernate, Relational Persistence for Idiomatic Java\n \*\n \* JBoss, Home of Professional Open Source\n \* Copyright \d{4}(-\d{4})? Red Hat Inc. and/or its affiliates and other contributors\n \* as indicated by the @authors tag. All rights reserved.\n \* See the copyright.txt in the distribution for a\n \* full listing of individual contributors.\n \*\n \* This copyrighted material is made available to anyone wishing to use,\n \* modify, copy, or redistribute it subject to the terms and conditions\n \* of the GNU Lesser General Public License, v. 2.1.\n \* This program is distributed in the hope that it will be useful, but WITHOUT A\n \* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n \* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.\n \* You should have received a copy of the GNU Lesser General Public License,\n \* v.2.1 along with this distribution; if not, write to the Free Software\n \* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,\n \* MA 02110-1301, USA.\n \*/)|(/\* ?\n \* JBoss, Home of Professional Open Source\n \* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors\n \* as indicated by the @authors tag. All rights reserved.\n \* See the copyright.txt in the distribution for a\n \* full listing of individual contributors.\n \*\n \* This copyrighted material is made available to anyone wishing to use,\n \* modify, copy, or redistribute it subject to the terms and conditions\n \* of the GNU Lesser General Public License, v. 2.1.\n \* This program is distributed in the hope that it will be useful, but WITHOUT A\n \* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n \* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.\n \* You should have received a copy of the GNU Lesser General Public License,\n \* v.2.1 along with this distribution; if not, write to the Free Software\n \* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,\n \* MA 02110-1301, USA.\n \*/)" />
|
|
<property name="message" value="Correct header not found" />
|
|
</module>
|
|
-->
|
|
<module name="RegexpSinglelineJava">
|
|
<property name="ignoreComments" value="true" />
|
|
<property name="format" value="^\t* +\t*\S" />
|
|
<property name="message" value="Line has leading space characters; indentation should be performed with tabs only." />
|
|
</module>
|
|
|
|
<!--
|
|
For now this is disabled to minimize false conflicts with metamodel branch.
|
|
|
|
<module name="RegexpSinglelineJava">
|
|
<property name="ignoreComments" value="true" />
|
|
<property name="format" value="\s+$" />
|
|
<property name="message" value="White spaces at the end of line" />
|
|
</module>
|
|
-->
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Annotation checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_annotation.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="MissingDeprecated" />
|
|
<module name="MissingOverride" />
|
|
<module name="PackageAnnotation" />
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Block checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_blocks.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="AvoidNestedBlocks">
|
|
<property name="allowInSwitchCase" value="true" />
|
|
<property name="severity" value="warning" />
|
|
</module>
|
|
<module name="NeedBraces" />
|
|
<module name="LeftCurly">
|
|
<property name="option" value="eol" />
|
|
</module>
|
|
<module name="RightCurly">
|
|
<property name="option" value="alone" />
|
|
</module>
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Design checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_design.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="HideUtilityClassConstructor" />
|
|
<module name="MutableException" />
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Coding checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_coding.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="EmptyStatement" />
|
|
<module name="EqualsHashCode" />
|
|
<module name="FinalLocalVariable" />
|
|
<module name="MissingSwitchDefault" />
|
|
<module name="ModifiedControlVariable" />
|
|
<module name="SimplifyBooleanExpression" />
|
|
<module name="SimplifyBooleanReturn" />
|
|
<module name="StringLiteralEquality" />
|
|
<module name="NoFinalizer" />
|
|
<module name="ExplicitInitialization" />
|
|
<module name="MissingSwitchDefault" />
|
|
<module name="DefaultComesLast" />
|
|
<module name="FallThrough" />
|
|
<module name="OneStatementPerLine" />
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Import checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_imports.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="AvoidStarImport" />
|
|
<module name="RedundantImport" />
|
|
<module name="UnusedImports" />
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Javadoc checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_javadoc.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="JavadocType">
|
|
<property name="scope" value="public"/>
|
|
<property name="allowUnknownTags" value="true" />
|
|
<property name="allowMissingParamTags" value="true" />
|
|
</module>
|
|
<module name="JavadocMethod">
|
|
<property name="scope" value="public" />
|
|
<property name="allowUndeclaredRTE" value="true" />
|
|
<property name="allowMissingPropertyJavadoc" value="true" />
|
|
</module>
|
|
<module name="JavadocVariable">
|
|
<property name="scope" value="public" />
|
|
</module>
|
|
<module name="JavadocStyle">
|
|
<property name="scope" value="public" />
|
|
<property name="checkEmptyJavadoc" value="true" />
|
|
<property name="checkFirstSentence" value="false" />
|
|
</module>
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Misc checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_misc.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="UpperEll" />
|
|
<module name="ArrayTypeStyle" />
|
|
<module name="TrailingComment">
|
|
<property name="severity" value="warning" />
|
|
</module>
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Modifier checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_modifier.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="ModifierOrder"/>
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Naming checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_naming.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="AbstractClassName">
|
|
<!-- we are just using this to make sure that classes matching the pattern (Abstract*) have the abstract modifier -->
|
|
<property name="format" value="^Abstract.*$" />
|
|
<property name="ignoreName" value="true" />
|
|
</module>
|
|
<module name="ClassTypeParameterName" />
|
|
<module name="ConstantName">
|
|
<property name="format" value="^[A-Z](_?[A-Z0-9]+)*$|log" />
|
|
</module>
|
|
<module name="LocalFinalVariableName" >
|
|
<property name="severity" value="warning" />
|
|
</module>
|
|
<module name="LocalVariableName" />
|
|
<module name="MemberName" />
|
|
<!--
|
|
The org.hibernate.engine.spi.ManagedEntity method names (prefixed with '&&_') muck with this
|
|
<module name="MethodName" />
|
|
-->
|
|
<module name="MethodTypeParameterName" />
|
|
<module name="PackageName" />
|
|
<module name="ParameterName" />
|
|
<module name="StaticVariableName" />
|
|
<module name="TypeName" />
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Whitespace checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_whitespace.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="MethodParamPad" />
|
|
<module name="TypecastParenPad" />
|
|
<module name="ParenPad">
|
|
<property name="tokens" value="CTOR_CALL, METHOD_CALL, SUPER_CTOR_CALL" />
|
|
<property name="option" value="space" />
|
|
</module>
|
|
|
|
</module>
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Javadoc checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_javadoc.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="JavadocPackage">
|
|
<property name="allowLegacy" value="true" />
|
|
</module>
|
|
|
|
|
|
<!--
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Misc checks
|
|
|
|
See http://checkstyle.sourceforge.net/config_misc.html
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-->
|
|
<module name="NewlineAtEndOfFile" />
|
|
|
|
</module>
|