2013-04-08 15:27:47 -04:00
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
2015-05-19 00:23:35 -04:00
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
~ See the lgpl.txt file in the root directory or <http: / / w w w . g n u . o r g / l i c e n s e s / l g p l - 2 . 1 . h t m l > .
2013-04-08 15:27:47 -04:00
-->
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name= "Checker" >
2016-11-09 12:34:51 -05:00
<!-- Only defines "fatal" violations; there are additional "non - fatal" rules in checkstyle - non - fatal.xml -->
2015-05-16 15:04:43 -04:00
2017-12-15 16:23:37 -05:00
<module name= "RegexpHeader" >
2024-09-16 11:49:09 -04:00
<property name= "header" value= "" />
<property name= "fileExtensions" value= "\/\*\n * SPDX-License-Identifier: LGPL-2.1-or-later\n \* Copyright Red Hat Inc. and Hibernate Authors\n \*\/java" />
2015-05-19 00:23:35 -04:00
</module>
2017-12-15 16:23:37 -05:00
<module name= "RegexpHeader" >
<property name= "header" value= "<\?xml version\="1.0" encoding\="UTF-8"\?>\n<!--\n ~ Hibernate, Relational Persistence for Idiomatic Java\n ~\n ~ License: GNU Lesser General Public License \(LGPL\), version 2\.1 or later[\.]?\n ~ See the lgpl.txt file in the root directory or [<]?http:\/\/www\.gnu\.org\/licenses\/lgpl-2\.1\.html[>]?[.]?\n -->" />
2015-05-19 00:23:35 -04:00
<property name= "fileExtensions" value= "xml,xsd" />
</module>
2013-04-19 15:35:22 -04:00
<module name= "TreeWalker" >
2013-04-08 22:23:51 -04:00
2013-04-19 15:35:22 -04:00
<!--
2015-05-16 15:04:43 -04:00
High-priority warnings : fail the build...
2013-04-19 15:35:22 -04:00
-->
<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 22:23:51 -04:00
2021-03-19 11:59:03 -04:00
<module name= "Regexp" >
<property name= "format" value= "/^(master|slave)$/" />
<property name= "illegalPattern" value= "true" />
<property name= "message" value= "Conscious Language (use of terms 'master' or 'slave' not allowed)" />
</module>
2013-04-08 15:27:47 -04:00
<module name= "MissingDeprecated" />
2015-05-16 15:04:43 -04:00
<module name= "MissingOverride" />
2013-04-19 15:35:22 -04:00
2015-05-16 15:04:43 -04:00
<module name= "PackageAnnotation" />
2013-04-19 15:35:22 -04:00
2013-04-08 15:27:47 -04:00
<module name= "NeedBraces" />
2015-05-16 15:04:43 -04:00
2013-04-19 15:35:22 -04:00
<module name= "LeftCurly" >
<property name= "option" value= "eol" />
</module>
2015-05-16 15:04:43 -04:00
2013-04-19 15:35:22 -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
2020-03-31 12:09:12 -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-09 13:58:18 -04:00
</module>
2013-04-19 15:35:22 -04:00
2015-09-21 11:05:32 -04:00
<!-- We are not using NewLineAtEndOfFile because the new line chars change
on different operating systems and that rule allows only one type. This rule
is not actually checking for new lines, but it will work if we check that
there are not white spaces at the end of a line with another rule. -->
<module name= "RegexpMultiline" >
<property name= "format" value= "\S\z" />
<property name= "message" value= "Missing new line at the end of file" />
</module>
<module name= "RegexpMultiline" >
2018-03-26 12:41:35 -04:00
<property name= "format" value= "\S(r?\n){5,}\z" />
<property name= "message" value= "Files should end with no more than 5 (empty) new lines" />
2015-09-21 11:05:32 -04:00
</module>
2013-04-19 15:35:22 -04:00
2013-04-08 15:27:47 -04:00
</module>