Skip to content

Commit

Permalink
Squelch useless periphery output on GitHub runners: maybe…
Browse files Browse the repository at this point in the history
Resolve #594

Signed-off-by: Ross Goldberg <[email protected]>
  • Loading branch information
rgoldberg committed Oct 24, 2024
1 parent 106e3da commit 88d97f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ PAGER='cat' git diff --check
((exit_code |= "${?}"))

printf -- $'--> 🌀 Periphery\n'
printf $'%q\n' "$(script -q /dev/null periphery scan --strict --quiet --disable-update-check)"
script -q /dev/null periphery scan --strict --quiet --disable-update-check |
(grep -vxE '(?:\x1b\[0;1;32m|\^D\b\b)\* (?:\x1b\[0;0m\x1b\[0;1m)?No unused code detected\.(?:\x1b\[0;0m)?\r' || true)
((exit_code |= "${?}"))

exit "${exit_code}"

0 comments on commit 88d97f7

Please sign in to comment.