Skip to content

Commit

Permalink
Update metric description
Browse files Browse the repository at this point in the history
  • Loading branch information
Raleksan committed Oct 15, 2024
1 parent 8cfc7d4 commit cecf425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/bug_discover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ export PMD_JAVA_OPTS=${JVM_OPTS}
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)

violation_num=$(awk '/<violation/ {count++} END {print count+0}' "${tmp}/result.xml")
printf "BugNum %s The number of issues detected in the code by the static analyzer\n" "${violation_num}" > "${output}"
printf "BugNum %s The number of issues detected by PMD\n" "${violation_num}" > "${output}"

0 comments on commit cecf425

Please sign in to comment.