Repository navigation
Add rubocop-gusto - #133
Merged
Merged
Conversation
Inherit the shared rubocop-gusto config, as packs, pack_stats and packwerk-extensions already do. - Add rubocop-gusto as a development dependency - Inherit rubocop-gusto's config/default.yml and load its plugin - Exclude bin/ (generated binstubs) - Keep development dependencies in the gemspec (Gemspec/DevelopmentDependencies: EnforcedStyle gemspec) - Enforce double-quoted strings (Style/StringLiterals) and convert the codebase with safe autocorrect - Disable Gemspec/RequireMFA, as other rubyatscale gems do, so the gemspec metadata (and release behaviour) is unchanged - Apply safe autocorrections and record the remaining unsafe or non-correctable offenses in .rubocop_todo.yml - Keep `# typed: strict` on options_parser.rb (fixing the malformed `#typed:` sigil) rather than letting autocorrect downgrade it - Fix the node_color_builder sig: the proc is called with a nilable code owner and returns nil for it, so type both as T.nilable(String)
- Enable RSpec/NotToNot, which rubocop-gusto leaves off by default - No existing spec uses `to_not`, so nothing needed correcting - Sort the cop configurations in .rubocop.yml alphabetically; a comment that introduced a group of cops is repeated on each cop in the group
dduugg
enabled auto-merge (squash)
November 30, 2026 21:33
dduugg
disabled auto-merge
November 30, 2026 21:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
rubocop-gusto, the shared RuboCop config that packs, pack_stats, packwerk-extensions, rubocop-packs, singed, bigrails-redis and danger-migrations already use, to this repo.What changed
rubocop-gustoas a development dependency (spec.add_development_dependency "rubocop-gusto");Gemfile.lockonly gains the new gems, nothing is bumped..rubocop.ymlinheritsconfig/default.ymlfrom rubocop-gusto and loads its plugin..rubocop_todo.ymlrecords the 24 remaining cops whose offenses have no safe autocorrection, generated withrubocop --auto-gen-config --exclude-limit 10000.Style/StringLiterals,EnforcedStyle: double_quotes) and converts the codebase to match.RSpec/NotToNot(rubocop-gusto leaves it off by default); no existing spec usesto_not, so nothing needed correcting..rubocop.ymlare sorted alphabetically. A comment that introduced a group of cops is repeated on each cop in the group.rubocop --display-only-safe-correctablereports nothing, so the todo hides no safe fix.Gemspec/RequireMFAis disabled, as in the other repos on rubocop-gusto. Its autocorrect would addrubygems_mfa_requiredto the gemspec, which changes how the gem is published, so that is left for a separate decision.bin/is excluded (generated binstubs)..rubocop.ymlis new. Sorbet cops stay on.Gemspec/DevelopmentDependenciesis set toEnforcedStyle: gemspecbecause the repo keeps its dev dependencies in the gemspec.options_parser.rbhad a malformed#typed: strictsigil, now# typed: strict; andnode_color_builder's lambda sig is nowT.proc.params(arg0: T.nilable(String)).returns(T.nilable(String)), becausegraph.dot.erbcalls it with a possibly-nil owner. Both are type-level only.d3_graph_generator/parse_packwerk_integration.rbis hand-written Ruby, so it is linted too.RSpec/InstanceVariable(33) and a handful of unsafe-autocorrect style cops. Tapioca gem RBIs are not regenerated (it would add about 207k lines).Verification
main)srb tc: no errorsspec/ci.shregenerate byte-identical to the committed.dotfilesCI
CI for this repo does not run rubocop, so these checks are local only. CI is unchanged.