File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1- FROM codenarc/codenarc:2.2 .0-groovy3.0.8
1+ FROM codenarc/codenarc:3.6 .0-groovy3.0.23
22
33RUN DEBIAN_FRONTEND=noninteractive \
44apt-get update && \
Original file line number Diff line number Diff line change 33
44if [ -n " ${GITHUB_WORKSPACE} " ] ; then
55 cd " ${GITHUB_WORKSPACE} /${INPUT_WORKDIR} " || exit
6-
76 git config --global --add safe.directory " $GITHUB_WORKSPACE " || exit
87fi
98
109export REVIEWDOG_GITHUB_API_TOKEN=" ${INPUT_GITHUB_TOKEN} "
1110
12- java -jar /lib/codenarc-all.jar \
13- -report=" ${INPUT_REPORT:- compact: stdout} " \
14- -rulesetfiles=" ${INPUT_RULESETFILES} " \
15- > result.txt
11+ if [ -n " $INPUT_SOURCE_FILES " ]; then
12+ java -jar /lib/codenarc-all.jar \
13+ -report=" ${INPUT_REPORT:- compact: stdout} " \
14+ -rulesetfiles=" ${INPUT_RULESETFILES} " \
15+ -basedir=" ." \
16+ -includes=" ${INPUT_SOURCE_FILES} " \
17+ > result.txt
18+ else
19+ java -jar /lib/codenarc-all.jar \
20+ -report=" ${INPUT_REPORT:- compact: stdout} " \
21+ -rulesetfiles=" ${INPUT_RULESETFILES} " \
22+ > result.txt
23+ fi
24+
1625
1726< result.txt reviewdog -efm=" %f:%l:%m" -efm=" %f:%r:%m" \
1827 -name=" codenarc" \
You can’t perform that action at this time.
0 commit comments