Skip to content

chore: enforce RuboCop across the codebase with a todo file#2726

Merged
olleolleolle merged 2 commits into
masterfrom
improve/rubocop-setup
Jul 27, 2026
Merged

chore: enforce RuboCop across the codebase with a todo file#2726
olleolleolle merged 2 commits into
masterfrom
improve/rubocop-setup

Conversation

@mroderick

@mroderick mroderick commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

This PR enforces RuboCop across the codebase, including specs.

Changes:

  • Remove spec/**/* from AllCops: Exclude.
  • Inherit .rubocop_todo.yml with inherit_mode: merge for Exclude, preserving existing per-cop exclusions.
  • Capture roughly 2,100 existing offenses in .rubocop_todo.yml using --auto-gen-only-exclude --no-exclude-limit, without relaxing rules or disabling cops.
  • Add overcommit as an optional pre-commit hook.
  • Add a RuboCop job to GitHub Actions.
  • Add docs/rubocop.md with contributor instructions for incremental cleanup.

CI now blocks new offenses.

- Remove `spec/**/*` from `AllCops: Exclude` and add `inherit_from: .rubocop_todo.yml`
- Use `inherit_mode: merge` for `Exclude` so per-cop exclusions combine
- Generate `.rubocop_todo.yml` with `--auto-gen-only-exclude --no-exclude-limit`
- Add `overcommit` to the development group and configure the RuboCop hook
- Add a RuboCop job to GitHub Actions
@mroderick
mroderick force-pushed the improve/rubocop-setup branch from 9d728c5 to e287590 Compare July 27, 2026 10:03
@mroderick
mroderick force-pushed the improve/rubocop-setup branch from e287590 to b875c22 Compare July 27, 2026 10:09
@mroderick
mroderick marked this pull request as ready for review July 27, 2026 10:11
@mroderick
mroderick requested a review from olleolleolle July 27, 2026 10:13

@olleolleolle olleolleolle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we feel this gets in the way, somehow, it’s easy to take a step back. If it works, it’s super.

@olleolleolle
olleolleolle merged commit a655c97 into master Jul 27, 2026
10 checks passed
@olleolleolle
olleolleolle deleted the improve/rubocop-setup branch July 27, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants