Skip to content

Commit

Permalink
fixup! fixup! gubed
Browse files Browse the repository at this point in the history
seriously, this is what my life has come to
  • Loading branch information
bcaller committed Jan 30, 2023
1 parent 7435d5f commit eaa1510
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions assets/reviewdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUNNERS="safesvg tfsec semgrep brakeman"

if [ -n "${GITHUB_BASE_REF+set}" ]; then
for runner in $RUNNERS; do
reviewdog -reporter=local -runners=$runner -conf="$SCRIPTPATH/reviewdog/reviewdog.yml" -diff="git diff origin/$GITHUB_BASE_REF" > $runner.log
reviewdog -reporter=local -runners=$runner -conf="$SCRIPTPATH/reviewdog/reviewdog.yml" -diff="git diff origin/$GITHUB_BASE_REF" -tee > $runner.log
done

for runner in $RUNNERS; do
Expand All @@ -21,5 +21,5 @@ else
find $SCRIPTPATH/../t3sts/ | sed "s|$SCRIPTPATH/../||g" | tr '\n' '\0' > $SCRIPTPATH/all_changed_files.txt
GITHUB_BASE_REF=initial-commit reviewdog -runners=semgrep,safesvg -conf="$SCRIPTPATH/reviewdog/reviewdog.yml" -diff="git diff origin/$GITHUB_BASE_REF" -reporter=local -tee
fi

cat $runner.log
find reviewdog.log -type f -empty -delete
11 changes: 5 additions & 6 deletions assets/reviewdog/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ runner:
cmd: |
set -ex
brakeman --quiet --no-exit-on-warn --no-exit-on-error --force --format text --text-fields file,line,message,link
errorformat: >
%AFile: %f
%CLine: %l
%CMessage: %m
%CLink: %m
%Z
errorformat:
- "%AFile: %f"
- "%CLine: %l"
- "%CMessage: %m"
- "%CLink: %m"

0 comments on commit eaa1510

Please sign in to comment.