File tree Expand file tree Collapse file tree 3 files changed +63
-8
lines changed Expand file tree Collapse file tree 3 files changed +63
-8
lines changed Original file line number Diff line number Diff line change 1616.factorypath
1717.vscode /
1818repo /
19- /* .svg
19+ /* .svg
20+ .pmd /.cache
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
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 =" DoD"
21+ description =" pragmatic approach to maintaining code quality in large-scale"
22+ xmlns =" http://pmd.sourceforge.net/ruleset/2.0.0"
23+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
24+ xsi : schemaLocation =" http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd" >
25+ <exclude-pattern >.*/compat/maven-compat/.*</exclude-pattern >
26+ <rule ref =" category/java/bestpractices.xml/MissingOverride" />
27+ </ruleset >
Original file line number Diff line number Diff line change @@ -793,13 +793,22 @@ under the License.</licenseText>
793793 <plugin >
794794 <groupId >org.apache.maven.plugins</groupId >
795795 <artifactId >maven-pmd-plugin</artifactId >
796- <dependencies >
797- <dependency >
798- <groupId >net.sourceforge.pmd</groupId >
799- <artifactId >pmd-core</artifactId >
800- <version >7.14.0</version >
801- </dependency >
802- </dependencies >
796+ <configuration >
797+ <analysisCache >true</analysisCache >
798+ <analysisCacheLocation >${maven.multiModuleProjectDirectory} /.pmd/.cache</analysisCacheLocation >
799+ <printFailingErrors >true</printFailingErrors >
800+ <rulesets >
801+ <ruleset >${maven.multiModuleProjectDirectory} /.pmd/ruleset.xml</ruleset >
802+ </rulesets >
803+ </configuration >
804+ <executions >
805+ <execution >
806+ <goals >
807+ <goal >check</goal >
808+ </goals >
809+ <phase >verify</phase >
810+ </execution >
811+ </executions >
803812 </plugin >
804813 <plugin >
805814 <groupId >org.eclipse.sisu</groupId >
@@ -816,6 +825,10 @@ under the License.</licenseText>
816825 </plugins >
817826 </pluginManagement >
818827 <plugins >
828+ <plugin >
829+ <groupId >org.apache.maven.plugins</groupId >
830+ <artifactId >maven-pmd-plugin</artifactId >
831+ </plugin >
819832 <plugin >
820833 <groupId >io.github.olamy.maven.plugins</groupId >
821834 <artifactId >jacoco-aggregator-maven-plugin</artifactId >
@@ -1176,5 +1189,19 @@ under the License.</licenseText>
11761189 </plugins >
11771190 </build >
11781191 </profile >
1192+ <profile >
1193+ <id >pmd</id >
1194+ <activation >
1195+ <activeByDefault >true</activeByDefault >
1196+ </activation >
1197+ <build >
1198+ <plugins >
1199+ <plugin >
1200+ <groupId >org.apache.maven.plugins</groupId >
1201+ <artifactId >maven-pmd-plugin</artifactId >
1202+ </plugin >
1203+ </plugins >
1204+ </build >
1205+ </profile >
11791206 </profiles >
11801207</project >
You can’t perform that action at this time.
0 commit comments