hibernate-orm/shared/config/checkstyle/checkstyle.xml

254 lines
8.2 KiB
XML
Raw Normal View History

2013-04-08 15:27:47 -04:00
<?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">
2015-05-16 15:04:43 -04:00
<!-- See http://checkstyle.sourceforge.net/checks.html for details of the various checks -->
<module name="TreeWalker">
2015-05-18 03:01:51 -04:00
<module name="FileContentsHolder"/>
<!--
2015-05-16 15:04:43 -04:00
High-priority warnings : fail the build...
-->
<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>
2013-04-08 15:27:47 -04:00
<module name="MissingDeprecated" />
2015-05-16 15:04:43 -04:00
<module name="MissingOverride" />
2015-05-16 15:04:43 -04:00
<module name="PackageAnnotation" />
2013-04-08 15:27:47 -04:00
<module name="NeedBraces" />
2015-05-16 15:04:43 -04:00
<module name="LeftCurly">
<property name="option" value="eol" />
</module>
2015-05-16 15:04:43 -04:00
<module name="RightCurly">
<property name="option" value="alone" />
</module>
2015-05-16 15:04:43 -04:00
<module name="EqualsHashCode" />
<module name="StringLiteralEquality" />
<module name="NoFinalizer" />
<module name="OneStatementPerLine" />
<module name="UpperEll" />
2015-05-18 14:35:26 -04:00
<module name="IllegalImport">
<property name="illegalPkgs" value="java.awt, sun, org.slf4j"/>
</module>
2013-04-08 15:27:47 -04:00
2015-05-16 15:04:43 -04:00
<!--
Medium and low priority warnings : do not fail build
-->
2015-05-16 15:04:43 -04:00
2015-05-18 14:35:26 -04:00
<module name="AvoidStarImport">
<property name="severity" value="warning" />
</module>
<module name="RedundantImport">
<property name="severity" value="warning" />
</module>
<module name="UnusedImports">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="AvoidNestedBlocks">
<property name="allowInSwitchCase" value="true" />
2013-11-23 01:06:06 -05:00
<property name="severity" value="warning" />
</module>
2013-04-08 15:27:47 -04:00
2015-05-16 15:04:43 -04:00
<module name="HideUtilityClassConstructor">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="MutableException">
<property name="severity" value="warning" />
</module>
2013-11-23 01:06:06 -05:00
<module name="EmptyStatement">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="MissingSwitchDefault">
2013-11-23 22:30:05 -05:00
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="DefaultComesLast">
2013-11-23 01:06:06 -05:00
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
2013-11-23 01:06:06 -05:00
<module name="ModifiedControlVariable">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="SimplifyBooleanExpression">
2013-11-23 01:06:06 -05:00
<property name="severity" value="warning" />
</module>
2013-04-08 15:27:47 -04:00
2015-05-16 15:04:43 -04:00
<module name="SimplifyBooleanReturn">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="ExplicitInitialization">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="FallThrough">
<property name="severity" value="warning" />
</module>
2013-11-23 01:06:06 -05:00
<module name="ArrayTypeStyle">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="TrailingComment">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="ModifierOrder">
<property name="severity" value="warning" />
</module>
<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" />
2015-05-16 15:04:43 -04:00
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
2013-11-23 01:06:06 -05:00
<module name="ClassTypeParameterName">
<property name="format" value="^[A-Z][A-Z0-9]*$" />
2015-05-16 15:04:43 -04:00
<property name="severity" value="warning" />
2013-11-23 01:06:06 -05:00
</module>
2015-05-16 15:04:43 -04:00
2013-04-08 15:27:47 -04:00
<module name="ConstantName">
<property name="format" value="^[A-Z](_?[A-Z0-9]+)*$|log" />
2013-11-23 01:06:06 -05:00
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="LocalFinalVariableName">
<property name="severity" value="warning" />
</module>
2013-11-24 16:20:45 -05:00
<module name="LocalVariableName">
2013-11-23 01:06:06 -05:00
<property name="severity" value="warning" />
2013-04-08 15:27:47 -04:00
</module>
2015-05-16 15:04:43 -04:00
<module name="MemberName">
<property name="severity" value="warning" />
</module>
2013-11-24 16:39:24 -05:00
<module name="MethodTypeParameterName">
<property name="format" value="^[A-Z][A-Z0-9]*$" />
2015-05-16 15:04:43 -04:00
<property name="severity" value="warning" />
2013-11-24 16:39:24 -05:00
</module>
2013-04-08 15:27:47 -04:00
2015-05-16 15:04:43 -04:00
<module name="PackageName">
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="ParameterName">
<property name="severity" value="warning" />
</module>
<module name="StaticVariableName">
<property name="severity" value="warning" />
</module>
<module name="TypeName">
<property name="severity" value="warning" />
</module>
<module name="AbbreviationAsWordInName">
<property name="severity" value="warning" />
</module>
<module name="MethodParamPad">
<property name="severity" value="warning" />
</module>
<module name="TypecastParenPad">
<property name="severity" value="warning" />
</module>
<module name="ParenPad">
<property name="tokens" value="CTOR_CALL, METHOD_CALL, SUPER_CTOR_CALL" />
<property name="option" value="space" />
2015-05-16 15:04:43 -04:00
<property name="severity" value="warning" />
</module>
2013-04-08 15:27:47 -04:00
</module>
<module name="JavadocPackage">
<property name="allowLegacy" value="true" />
2015-05-16 15:04:43 -04:00
<property name="severity" value="warning" />
</module>
2015-05-16 15:04:43 -04:00
<module name="NewlineAtEndOfFile" />
2015-05-16 15:04:43 -04:00
<!--
Used to collect "todo" comments into a single location
-->
2015-05-16 15:04:43 -04:00
<module name="TreeWalker">
<module name="TodoComment">
<property name="format" value="[Tt][Oo][Dd][Oo]"/>
<property name="severity" value="info" />
</module>
</module>
2013-04-08 15:27:47 -04:00
2015-05-18 14:35:26 -04:00
<!--
Source code comment-based suppressions
-->
<module name="SuppressionCommentFilter">
<!--
Allow a finalize() method within these comments. DriverManagerConnectionProviderImpl e.g.
uses a finalizer to make sure we release all of its cached connections.
-->
<property name="offCommentFormat" value="CHECKSTYLE:START_ALLOW_FINALIZER"/>
<property name="onCommentFormat" value="CHECKSTYLE:END_ALLOW_FINALIZER"/>
<property name="checkFormat" value="NoFinalizer"/>
</module>
<module name="SuppressWithNearbyCommentFilter">
<property name="commentFormat" value="noinspection StatementWithEmptyBody"/>
<property name="checkFormat" value="EmptyStatement"/>
<property name="influenceFormat" value="1"/>
</module>
2013-04-08 15:27:47 -04:00
</module>