File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ run_codenarc() {
2525 -basedir=" ." \
2626 $includes_arg \
2727 > " $CODENARC_RESULT "
28+
29+ echo " 🔍 DEBUG: Resultado completo do CodeNarc:"
30+ cat " $CODENARC_RESULT "
31+ echo " 🔍 DEBUG: Fim do resultado CodeNarc"
2832}
2933
3034run_reviewdog () {
@@ -61,13 +65,19 @@ file_matches_patterns() {
6165 file=" $1 "
6266 patterns=" $2 "
6367
64- [ -z " $patterns " ] && return 0
68+ echo " 🔍 DEBUG: Verificando arquivo '$file ' contra padrões '$patterns '"
69+
70+ [ -z " $patterns " ] && echo " 🔍 DEBUG: Sem padrões, permitindo arquivo" && return 0
6571
66- echo " $patterns " | while read -r pattern; do
72+ for pattern in $patterns ; do
73+ echo " 🔍 DEBUG: Testando padrão '$pattern '"
6774 if echo " $file " | grep -Eq " $pattern " ; then
75+ echo " 🔍 DEBUG: MATCH com padrão '$pattern '"
6876 return 0
6977 fi
7078 done
79+
80+ echo " 🔍 DEBUG: Nenhum padrão corresponde"
7181 return 1
7282}
7383
You can’t perform that action at this time.
0 commit comments