Skip to content

Commit

Permalink
pmd #361 tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 13, 2024
1 parent a92aca2 commit 9acdb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/pmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cp "${java}" "${tmp}/foo.java"

export PMD_JAVA_OPTS=${JVM_OPTS}
# We don't use --cache here, because it becomes too big and leads to "Out Of Memory" error
pmd check -R "${tmp}/config.xml" -d "${tmp}" --format xml --no-fail-on-violation > "${tmp}/result.xml" 2> "${tmp}/stderr.txt" || (cat "${tmp}/stderr.txt"; exit 1)
pmd check -R "${tmp}/config.xml" -d "${tmp}" --format xml --no-fail-on-error --no-fail-on-violation > "${tmp}/result.xml" 2> "${tmp}/stderr.txt" || (cat "${tmp}/stderr.txt"; exit 1)

tail='Cognitive Complexity~\\citep{campbell2018cognitive} values for all methods in a class'
sed 's/xmlns=".*"//g' "${tmp}/result.xml" | \
Expand Down

0 comments on commit 9acdb1e

Please sign in to comment.