Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run PMD by default #106

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<configLocation>.pipeline/checkstyle.xml</configLocation>
<configLocation>${project.rootdir}/.pipeline/checkstyle.xml</configLocation>
<!-- Exclude generated clients -->
<suppressionsLocation>.pipeline/checkstyle-suppressions.xml</suppressionsLocation>
<suppressionsLocation>${project.rootdir}/.pipeline/checkstyle-suppressions.xml</suppressionsLocation>
<linkXRef>false</linkXRef>
</configuration>
<dependencies>
Expand All @@ -415,29 +415,37 @@
<version>3.25.0</version>
<configuration>
<rulesets>
<ruleset>.pipeline/pmd.xml</ruleset>
<ruleset>.pipeline/sdk_specific_pmd_rules.xml</ruleset>
<ruleset>${project.rootdir}/.pipeline/pmd.xml</ruleset>
<ruleset>${project.rootdir}/.pipeline/sdk_specific_pmd_rules.xml</ruleset>
<!-- content of the PMD default rule set for Java can be found here:
https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/main/resources/rulesets/java/maven-pmd-plugin-default.xml;hb=HEAD -->
<ruleset>/rulesets/java/maven-pmd-plugin-default.xml</ruleset>
</rulesets>
<linkXRef>false</linkXRef>
<targetJdk>${maven.compiler.release}</targetJdk>
<printFailingErrors>true</printFailingErrors>
<excludes>
<!-- Exclude generated clients -->
<exclude>com/sap/ai/sdk/core/client/**/*</exclude>
<exclude>com/sap/ai/sdk/orchestration/client/**/*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.6.4</version>
<configuration>
<includeFilterFile>.pipeline/spotbugs.xml</includeFilterFile>
<includeFilterFile>${project.rootdir}/.pipeline/spotbugs.xml</includeFilterFile>
<!-- Exclude generated clients -->
<excludeFilterFile>.pipeline/spotbugs-exclusions.xml</excludeFilterFile>
<excludeFilterFile>${project.rootdir}/.pipeline/spotbugs-exclusions.xml</excludeFilterFile>
<effort>Max</effort>
<threshold>Low</threshold>
<maxHeap>2048</maxHeap>
Expand Down