We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a3e0e9 commit b4a22bcCopy full SHA for b4a22bc
entrypoint.sh
@@ -67,12 +67,16 @@ separate_violations() {
67
}
68
69
run_reviewdog() {
70
- echo "📤 Enviando resultados para reviewdog..."
71
-
72
separate_violations
73
+ has_violations=false
+ [ -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
79
if [ -s "$LINE_VIOLATIONS" ]; then
- echo "📤 Enviando violações line-based (${INPUT_REPORTER:-github-pr-check})..."
80
run_reviewdog_with_config "$LINE_VIOLATIONS" "%f:%l:%m" \
81
"${INPUT_REPORTER:-github-pr-check}" "codenarc" \
82
"${INPUT_FILTER_MODE}" "${INPUT_LEVEL}"
0 commit comments