Skip to content

Commit 325d623

Browse files
committed
Ajustado para rodar para o projeto todo caso não venha a variável com os arquivos alterados
1 parent 0a52674 commit 325d623

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ if [ -n "$INPUT_SOURCE_FILES" ]; then
1616
-includes="${INPUT_SOURCE_FILES}" \
1717
> result.txt
1818
else
19-
echo "Nenhum arquivo Groovy alterado encontrado. Pulando análise do CodeNarc."
20-
exit 0
19+
java -jar /lib/codenarc-all.jar \
20+
-report="${INPUT_REPORT:-compact:stdout}" \
21+
-rulesetfiles="${INPUT_RULESETFILES}" \
22+
> result.txt
2123
fi
2224

2325

0 commit comments

Comments
 (0)