Skip to content

Commit

Permalink
Updates to latest version of pmd@v7 (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
haroon-sheikh authored May 15, 2024
1 parent 7845ddf commit bfc445c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
groups:
maven-dependencies:
patterns:
- "*"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 0.6.0

### Updated

- Updates to latest version of pmd@v7

## 0.5.0

### Updated
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>unirest-curl</artifactId>
<name>${project.artifactId}</name>
<packaging>jar</packaging>
<version>0.5.0</version>
<version>0.6.0</version>
<description>An interceptor to log Unirest requests as curl requests.</description>
<url>https://github.com/sitture/unirest-curl</url>
<developers>
Expand Down Expand Up @@ -89,7 +89,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.21.2</version>
<version>3.22.0</version>
<configuration>
<failOnViolation>true</failOnViolation>
<printFailingErrors>true</printFailingErrors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private String getHeaders() {
private String getBody() {
String processedBody = "";
if (request.getBody().isPresent()) {
if (request.getBody().get().multiParts().size() == 0 && null != request.getBody().get().uniPart()) {
if (request.getBody().get().multiParts().isEmpty() && null != request.getBody().get().uniPart()) {
processedBody = String.format(REQUEST_BODY, request.getBody().get().uniPart().getValue());
} else {
processedBody = request.getBody().get().multiParts().stream()
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/config/pmd/rulesets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
<rule ref="category/java/documentation.xml">
<exclude name="CommentRequired"/>
</rule>
<rule ref="category/java/errorprone.xml">
<exclude name="DataflowAnomalyAnalysis"/>
</rule>
<rule ref="category/java/errorprone.xml"/>
<rule ref="category/java/multithreading.xml"/>
<rule ref="category/java/performance.xml"/>
<rule ref="category/java/security.xml"/>
Expand Down

0 comments on commit bfc445c

Please sign in to comment.