Share a RuboCop report
A big Ruby codebase adopting RuboCop produces a number nobody can act on: 812 offenses detected. The terminal output that explains it is four thousand lines long and lives in a CI log that expires.
RuboCop ships an HTML formatter for exactly this:
rubocop --format progress --format html --out rubocop.html
Two formatters, one command: dots in the terminal, a browsable report on disk. It groups by file, expands to the offending source line, and links each offense to the cop that raised it.
Publish it
Drag rubocop.html into the app, or from CI:
bundle exec rubocop --format html --out rubocop.html || true
curl -fsS -X PATCH "https://commareports.com/api/v1/reports/$REPORT_ID" \
-H "Authorization: Bearer $COMMA_API_TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --rawfile html rubocop.html \
--arg title "RuboCop — $GITHUB_SHA" '{title: $title, html: $html}')"
Run the publish step with if: always() (GitHub Actions), when: always
(GitLab, CircleCI) or post { always { … } } (Jenkins). A clean lint report
is not the one anyone needs.