Skip to content

Commit c4c41d4

Browse files
committed
Merge origin/master
Conflicts: src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java
2 parents 002f596 + f18e92e commit c4c41d4

File tree

70 files changed

+2408
-1931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2408
-1931
lines changed

pmd-rules.xml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
<ruleset name="Default Maven PMD Plugin Ruleset"
21+
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
22+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23+
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
24+
25+
<description>
26+
The default ruleset used by the Maven PMD Plugin, when no other ruleset is specified.
27+
It contains the rules of the old (pre PMD 6.0.0) rulesets java-basic, java-empty, java-imports,
28+
java-unnecessary, java-unusedcode.
29+
30+
This ruleset might be used as a starting point for an own customized ruleset [0].
31+
32+
[0] https://pmd.github.io/latest/pmd_userdocs_making_rulesets.html
33+
</description>
34+
35+
<rule ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP" />
36+
<rule ref="category/java/bestpractices.xml/CheckResultSet" />
37+
38+
<!-- this little fellow will complain about PACKAGE based imports -->
39+
<!--<rule ref="category/java/bestpractices.xml/UnusedImports" /> -->
40+
41+
<rule ref="category/java/bestpractices.xml/UnusedFormalParameter" />
42+
<rule ref="category/java/bestpractices.xml/UnusedLocalVariable" />
43+
<rule ref="category/java/bestpractices.xml/UnusedPrivateField" />
44+
<rule ref="category/java/bestpractices.xml/UnusedPrivateMethod" />
45+
46+
<rule ref="category/java/codestyle.xml/DontImportJavaLang" />
47+
<rule ref="category/java/codestyle.xml/DuplicateImports" />
48+
<rule ref="category/java/codestyle.xml/ExtendsObject" />
49+
<rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop" />
50+
<rule ref="category/java/codestyle.xml/TooManyStaticImports" />
51+
<rule ref="category/java/codestyle.xml/UnnecessaryFullyQualifiedName" />
52+
<rule ref="category/java/codestyle.xml/UnnecessaryModifier" />
53+
<rule ref="category/java/codestyle.xml/UnnecessaryReturn" />
54+
<rule ref="category/java/codestyle.xml/UselessParentheses" />
55+
<rule ref="category/java/codestyle.xml/UselessQualifiedThis" />
56+
57+
<!-- for Codazy -->
58+
<rule ref="category/java/codestyle.xml/MethodNamingConventions" />
59+
<rule ref="category/java/codestyle.xml/ClassNamingConventions" />
60+
61+
<rule ref="category/java/design.xml/CollapsibleIfStatements" />
62+
<rule ref="category/java/design.xml/SimplifiedTernary" />
63+
<rule ref="category/java/design.xml/UselessOverridingMethod" />
64+
<rule ref="category/java/design.xml/AvoidThrowingNullPointerException" />
65+
66+
<!-- for Codazy -->
67+
<rule ref="category/java/design.xml/CyclomaticComplexity" />
68+
<rule ref="category/java/design.xml/ExcessiveMethodLength" />
69+
70+
<rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" />
71+
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" />
72+
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" />
73+
<rule ref="category/java/errorprone.xml/AvoidUsingOctalValues" />
74+
<rule ref="category/java/errorprone.xml/BrokenNullCheck" />
75+
<rule ref="category/java/errorprone.xml/CheckSkipResult" />
76+
<rule ref="category/java/errorprone.xml/ClassCastExceptionWithToArray" />
77+
<rule ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices" />
78+
<rule ref="category/java/errorprone.xml/EmptyCatchBlock" />
79+
<rule ref="category/java/errorprone.xml/EmptyFinallyBlock" />
80+
<rule ref="category/java/errorprone.xml/EmptyIfStmt" />
81+
<rule ref="category/java/errorprone.xml/EmptyInitializer" />
82+
<rule ref="category/java/errorprone.xml/EmptyStatementBlock" />
83+
<rule ref="category/java/errorprone.xml/EmptyStatementNotInLoop" />
84+
<rule ref="category/java/errorprone.xml/EmptySwitchStatements" />
85+
<rule ref="category/java/errorprone.xml/EmptySynchronizedBlock" />
86+
<rule ref="category/java/errorprone.xml/EmptyTryBlock" />
87+
<rule ref="category/java/errorprone.xml/EmptyWhileStmt" />
88+
<rule ref="category/java/errorprone.xml/ImportFromSamePackage" />
89+
<rule ref="category/java/errorprone.xml/JumbledIncrementer" />
90+
<rule ref="category/java/errorprone.xml/MisplacedNullCheck" />
91+
<rule ref="category/java/errorprone.xml/OverrideBothEqualsAndHashcode" />
92+
<rule ref="category/java/errorprone.xml/ReturnFromFinallyBlock" />
93+
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement" />
94+
<rule ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" />
95+
<rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals" />
96+
<rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" />
97+
98+
<rule ref="category/java/multithreading.xml/AvoidThreadGroup" />
99+
<rule ref="category/java/multithreading.xml/DontCallThreadRun" />
100+
<rule ref="category/java/multithreading.xml/DoubleCheckedLocking" />
101+
102+
<rule ref="category/java/performance.xml/BigIntegerInstantiation" />
103+
<rule ref="category/java/performance.xml/BooleanInstantiation" />
104+
105+
</ruleset>

0 commit comments

Comments
 (0)