File tree Expand file tree Collapse file tree 3 files changed +48
-8
lines changed Expand file tree Collapse file tree 3 files changed +48
-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 =" Definition of Done"
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 https://pmd.sourceforge.io/ruleset_2_0_0.xsd" >
24+ <description >Programmatic approach to maintain code quality on large scale.</description >
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 @@ -798,13 +798,21 @@ under the License.</licenseText>
798798 <plugin >
799799 <groupId >org.apache.maven.plugins</groupId >
800800 <artifactId >maven-pmd-plugin</artifactId >
801- <dependencies >
802- <dependency >
803- <groupId >net.sourceforge.pmd</groupId >
804- <artifactId >pmd-core</artifactId >
805- <version >7.14.0</version >
806- </dependency >
807- </dependencies >
801+ <configuration >
802+ <analysisCache >true</analysisCache >
803+ <analysisCacheLocation >${maven.multiModuleProjectDirectory} /.pmd/.cache</analysisCacheLocation >
804+ <printFailingErrors >true</printFailingErrors >
805+ <rulesets >
806+ <ruleset >${maven.multiModuleProjectDirectory} /.pmd/ruleset.xml</ruleset >
807+ </rulesets >
808+ </configuration >
809+ <executions >
810+ <execution >
811+ <goals >
812+ <goal >check</goal >
813+ </goals >
814+ </execution >
815+ </executions >
808816 </plugin >
809817 <plugin >
810818 <groupId >org.eclipse.sisu</groupId >
@@ -821,6 +829,10 @@ under the License.</licenseText>
821829 </plugins >
822830 </pluginManagement >
823831 <plugins >
832+ <plugin >
833+ <groupId >org.apache.maven.plugins</groupId >
834+ <artifactId >maven-pmd-plugin</artifactId >
835+ </plugin >
824836 <plugin >
825837 <groupId >io.github.olamy.maven.plugins</groupId >
826838 <artifactId >jacoco-aggregator-maven-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments