Skip to content

Commit 45b9f68

Browse files
adicionando logs de debug
1 parent 298dd84 commit 45b9f68

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,17 @@ run_reviewdog_with_config() {
5151
}
5252

5353
separate_violations() {
54+
echo "📝 DEBUG: Conteúdo do CODENARC_RESULT:"
55+
cat "$CODENARC_RESULT"
56+
echo "📝 DEBUG: Fim do CODENARC_RESULT"
57+
5458
grep -E ':[0-9]+:' "$CODENARC_RESULT" > "$LINE_VIOLATIONS" || true
5559
grep -E ':null:|\|\|' "$CODENARC_RESULT" > "$FILE_VIOLATIONS" || true
60+
61+
echo "📝 DEBUG: Line violations capturadas:"
62+
[ -s "$LINE_VIOLATIONS" ] && cat "$LINE_VIOLATIONS" || echo "Nenhuma"
63+
echo "📝 DEBUG: File violations capturadas:"
64+
[ -s "$FILE_VIOLATIONS" ] && cat "$FILE_VIOLATIONS" || echo "Nenhuma"
5665
}
5766

5867
run_reviewdog() {

0 commit comments

Comments
 (0)