From d4b39187e8bc2282f59311f405931a60eefb9383 Mon Sep 17 00:00:00 2001 From: Byron Marohn Date: Thu, 2 May 2024 19:34:07 -0700 Subject: [PATCH] Fix compile warnings, add checkstyle & pmd errors for testing Signed-off-by: Byron Marohn --- .github/workflows/pullrequest.yml | 2 +- .../java/com/playmonumenta/libraryofsouls/SoulPartyEntry.java | 2 +- .../java/com/playmonumenta/libraryofsouls/SoulsDatabase.java | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 47b32d5..ecd10e6 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -48,6 +48,6 @@ jobs: set -o pipefail ./gradlew build --console=plain 2>&1 | tee compile.log set +o pipefail - cat compile.log | reviewdog -efm="%W%f:%l: warning: %m" -efm="%+C%[ %\t]%.%#" -name="compiler-warnings" -level=error -fail-on-error -reporter=github-pr-check + cat compile.log | reviewdog -efm="%f:%l: warning:%m" -name="compiler-warnings" -level=error -fail-on-error -reporter=github-pr-check cat build/reports/pmd/main.xml | reviewdog -efm='%+P' -efm='%W history) throws Exception { mHistory = history; - String refLabel = history.get(0).getLabel(); + String refLabel = history.get(0 ).getLabel(); for (SoulPartyHistoryEntry entry : history) { if (!entry.getLabel().equals(refLabel)) { diff --git a/src/main/java/com/playmonumenta/libraryofsouls/SoulsDatabase.java b/src/main/java/com/playmonumenta/libraryofsouls/SoulsDatabase.java index 47b7a34..5d43fcd 100644 --- a/src/main/java/com/playmonumenta/libraryofsouls/SoulsDatabase.java +++ b/src/main/java/com/playmonumenta/libraryofsouls/SoulsDatabase.java @@ -102,8 +102,6 @@ public SoulsDatabase(Plugin plugin, boolean loadHistory) throws Exception { mIgnoreNextChange = false; } } catch (Exception e) { - mPlugin.getLogger().warning("Caught exception while polling database file: " + e.getMessage()); - e.printStackTrace(); } }, 200, 200);