Skip to content

Commit b4a22bc

Browse files
refactor: consulta priority do XML ao inves de marcadores P1/P2
1 parent 8a3e0e9 commit b4a22bc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

entrypoint.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,16 @@ separate_violations() {
6767
}
6868

6969
run_reviewdog() {
70-
echo "📤 Enviando resultados para reviewdog..."
71-
7270
separate_violations
7371

72+
has_violations=false
73+
[ -s "$LINE_VIOLATIONS" ] || [ -s "$FILE_VIOLATIONS" ] && has_violations=true
74+
75+
if [ "$has_violations" = true ]; then
76+
echo "📤 Enviando resultados para reviewdog..."
77+
fi
78+
7479
if [ -s "$LINE_VIOLATIONS" ]; then
75-
echo "📤 Enviando violações line-based (${INPUT_REPORTER:-github-pr-check})..."
7680
run_reviewdog_with_config "$LINE_VIOLATIONS" "%f:%l:%m" \
7781
"${INPUT_REPORTER:-github-pr-check}" "codenarc" \
7882
"${INPUT_FILTER_MODE}" "${INPUT_LEVEL}"

0 commit comments

Comments
 (0)