Skip to content

Commit f727784

Browse files
committed
Bump commons-parent to 93
1 parent e13fe9a commit f727784

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,23 @@
313313
</plugins>
314314
</reporting>
315315
<profiles>
316+
<profile>
317+
<id>java8</id>
318+
<activation>
319+
<jdk>1.8</jdk>
320+
</activation>
321+
<build>
322+
<plugins>
323+
<plugin>
324+
<groupId>org.apache.maven.plugins</groupId>
325+
<artifactId>maven-checkstyle-plugin</artifactId>
326+
<configuration>
327+
<configLocation>src/conf/checkstyle-java8.xml</configLocation>
328+
</configuration>
329+
</plugin>
330+
</plugins>
331+
</build>
332+
</profile>
316333
<profile>
317334
<id>java16</id>
318335
<!-- For testing with CGLIB on Java 16 and up. -->

src/conf/checkstyle-java8.xml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
https://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
<!DOCTYPE module PUBLIC
19+
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
20+
"https://checkstyle.org/dtds/configuration_1_3.dtd">
21+
22+
<!--
23+
Checkstyle checks configured for Maven.
24+
-->
25+
<module name="Checker">
26+
<property name="localeLanguage" value="en" />
27+
<module name="FileTabCharacter" />
28+
<module name="JavadocPackage">
29+
<property name="allowLegacy" value="true" />
30+
</module>
31+
<module name="LineLength">
32+
<property name="max" value="160" />
33+
</module>
34+
<module name="NewlineAtEndOfFile">
35+
<!-- Files are saved in the repository with LF line endings; on Windows, use git config core.autocrlf input -->
36+
<property name="lineSeparator" value="lf" />
37+
</module>
38+
<module name="RegexpSingleline">
39+
<property name="format" value="^\s+\*\s+@author\s" />
40+
<property name="message" value="Deprecated @author tag" />
41+
<property name="fileExtensions" value="java" />
42+
<property name="severity" value="warning" />
43+
</module>
44+
<module name="RegexpSingleline">
45+
<property name="format" value="\s+$" />
46+
<property name="message" value="Line has trailing spaces." />
47+
</module>
48+
<module name="TreeWalker">
49+
<module name="ArrayTypeStyle" />
50+
<module name="AvoidStarImport" />
51+
<module name="CovariantEquals" />
52+
<module name="DefaultComesLast" />
53+
<module name="EmptyBlock">
54+
<property name="option" value="text" />
55+
</module>
56+
<module name="EqualsHashCode" />
57+
<module name="ExplicitInitialization" />
58+
<module name="FinalLocalVariable" />
59+
<module name="IllegalInstantiation" />
60+
<module name="ImportOrder">
61+
<property name="option" value="top" />
62+
<property name="groups" value="java,javax,org" />
63+
<property name="ordered" value="true" />
64+
<property name="separated" value="true" />
65+
</module>
66+
<module name="InterfaceIsType" />
67+
<module name="JavadocType" />
68+
<module name="JavadocMethod">
69+
</module>
70+
<module name="JavadocVariable">
71+
<property name="scope" value="protected" />
72+
</module>
73+
<module name="LeftCurly" />
74+
<module name="MethodParamPad"/>
75+
<module name="MissingOverride" />
76+
<module name="ModifierOrder" />
77+
<module name="MultipleVariableDeclarations" />
78+
<module name="NeedBraces" />
79+
<module name="ParenPad" />
80+
<module name="RedundantImport" />
81+
<module name="RedundantModifier" />
82+
<module name="RightCurly" />
83+
<module name="SimplifyBooleanExpression" />
84+
<module name="SimplifyBooleanReturn" />
85+
<module name="StringLiteralEquality" />
86+
<module name="SuperClone" />
87+
<module name="SuperFinalize" />
88+
<module name="TypecastParenPad" />
89+
<module name="UnnecessaryParentheses" />
90+
<module name="UnusedImports" />
91+
<module name="UpperEll" />
92+
<module name="VisibilityModifier">
93+
<property name="packageAllowed" value="true" />
94+
<property name="protectedAllowed" value="true" />
95+
</module>
96+
<module name="WhitespaceAfter" />
97+
<module name="WhitespaceAround" />
98+
</module>
99+
</module>

0 commit comments

Comments
 (0)