Skip to content

Commit

Permalink
Merge pull request #916 from KyleAure/904-remove-bestpractice-check-A…
Browse files Browse the repository at this point in the history
…bstractClassWithoutAbstractMethod
  • Loading branch information
KyleAure authored Dec 18, 2024
2 parents 06ceafe + 3142e47 commit 199e38f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
4 changes: 1 addition & 3 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">
<version>3.26.0</version>
<configuration>
<rulesets>
<ruleset>/category/java/bestpractices.xml</ruleset>
<ruleset>/category/java/security.xml</ruleset>
<ruleset>/category/java/performance.xml</ruleset>
<ruleset>src/main/resources/rules.xml</ruleset>
</rulesets>
<failOnViolation>true</failOnViolation>
<printFailingErrors>true</printFailingErrors>
Expand Down
32 changes: 32 additions & 0 deletions api/src/main/resources/rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2024 Contributors to the Eclipse Foundation
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
~ SPDX-License-Identifier: Apache-2.0
-->
<ruleset name="Jakrata Data"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">

<description>Rules for Jakarta Data.</description>

<rule ref="category/java/bestpractices.xml">
<exclude name="AbstractClassWithoutAbstractMethod"/>
</rule>
<rule ref="category/java/security.xml"/>
<rule ref="category/java/performance.xml"/>

</ruleset>

0 comments on commit 199e38f

Please sign in to comment.