12# CI for src.rest: brew style (Homebrew's RuboCop and audit cops) on the formulae,3# a syntax check on the GoReleaser-generated casks, and a parse of tap_migrations.json.4set -eu5export HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_ENV_HINTS=1 HOMEBREW_NO_ANALYTICS=16# Homebrew's RuboCop config scopes its formula rules with **/Formula/**, which7# misses paths under a dot directory like ~/.cache, so lint a copy in /tmp.8tmp=$(mktemp -d /tmp/forge-tap-style.XXXXXX)9trap 'rm -rf "$tmp"' EXIT10cp -R Formula Casks "$tmp/"11brew style "$tmp/Formula"12brew style --only-cops=Lint/Syntax "$tmp/Casks"13brew ruby -e 'require "json"; JSON.parse(File.read("tap_migrations.json"))'