Skip to content

Commit

Permalink
Fix github actions / reviewdog warnings not being detected, fix null …
Browse files Browse the repository at this point in the history
…warning (#55)

Signed-off-by: Byron Marohn <[email protected]>
  • Loading branch information
Combustible authored May 3, 2024
1 parent a72712c commit b5c6680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" -reporter=github-pr-check
cat build/reports/pmd/main.xml | reviewdog -efm='%+P<file name="%f">' -efm='%W<violation beginline="%l%.%#begincolumn="%c%.%#' -efm='%-C<%.%#' -efm='%+C%.%#' -efm='%-Q' -name="pmd" -reporter=github-pr-check
cat build/reports/checkstyle/main.xml | reviewdog -f=checkstyle -name="checkstyle" -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<file name="%f">' -efm='%W<violation beginline="%l%.%#begincolumn="%c%.%#' -efm='%-C<%.%#' -efm='%+C%.%#' -efm='%-Q' -name="pmd" -level=error -fail-on-error -reporter=github-pr-check
cat build/reports/checkstyle/main.xml | reviewdog -f=checkstyle -name="checkstyle" -level=error -fail-on-error -reporter=github-pr-check
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static Set<String> getSoulLocations() {
return db.listMobLocations();
}

public static List<Component> getDescription(String soulName) {
public static @Nullable List<Component> getDescription(String soulName) {
SoulsDatabase db = SoulsDatabase.getInstance();
SoulEntry soul = db.getSoul(soulName);
if (soul == null) {
Expand Down

0 comments on commit b5c6680

Please sign in to comment.