File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,17 @@ check_blocking_rules() {
3737 p1_count=$( grep -Eo " p1=[0-9]+" result.txt | cut -d' =' -f2 | head -1)
3838 p1_count=${p1_count:- 0}
3939
40- echo " 📊 Resumo CodeNarc -> priority 1=${p1_count} "
40+ echo " 📊 Resumo CodeNarc → priority 1=${p1_count} "
4141
42- if [ " $p1_count " -gt 0 ]; then
42+ block_on_violation=$( echo " ${INPUT_BLOCK_ON_VIOLATION} " | tr ' [:upper:]' ' [:lower:]' | xargs)
43+
44+ if [ " $block_on_violation " = " true" ] && [ " $p1_count " -gt 0 ]; then
4345 echo " ⛔ Foram encontradas violacoes bloqueantes (priority 1)."
4446 echo " 💡 Corrija as violacoes ou use o bypass autorizado pelo coordenador."
4547 exit 1
46- else
47- echo " ✅ Nenhuma violacao bloqueante (priority 1) encontrada."
4848 fi
49+
50+ echo " ✅ Nenhuma violacao bloqueante (priority 1) encontrada ou flag de bloqueio desativada (block_on_violation=false)."
4951}
5052
5153# --- principal -------------------------------------------------------
You can’t perform that action at this time.
0 commit comments