Skip to content

fix rubocop config so CI does not scan vendored gems - #24

Merged
skunkworker merged 1 commit into
masterfrom
aug26_fix_ci
Aug 27, 2026
Merged

fix rubocop config so CI does not scan vendored gems#24
skunkworker merged 1 commit into
masterfrom
aug26_fix_ci

Conversation

@skunkworker

Copy link
Copy Markdown
Contributor

The CI rubocop job failed with:

Error: The Style/MethodMissingSuper cop has been removed since it has
been superseded by Lint/MissingSuper.
(obsolete configuration found in
vendor/bundle/ruby/3.4.0/gems/protobuf-3.10.9/.rubocop_todo.yml)

An Exclude key under AllCops replaces the default exclude list rather than adding to it. The default list contains vendor/**/*. Setting only gemfiles/**/* dropped that entry, so rubocop walked into vendor/bundle, found the .rubocop.yml of each installed gem, and inherited it. The protobuf gem pins a cop that rubocop 1.90 removed.

inherit_mode: merge: [Exclude] keeps the defaults and adds gemfiles/**/* to them. The rubocop job installs gems into vendor/bundle, so this only appeared in CI.

Also set NewCops: disable. That silences the pending cop list that made up the rest of the failure output. Enabling the new cops instead adds several hundred offenses, including cops that conflict with the deliberate :: constant prefix style used throughout this gem.

The CI rubocop job failed with:

  Error: The `Style/MethodMissingSuper` cop has been removed since it has
  been superseded by `Lint/MissingSuper`.
  (obsolete configuration found in
  vendor/bundle/ruby/3.4.0/gems/protobuf-3.10.9/.rubocop_todo.yml)

An `Exclude` key under `AllCops` replaces the default exclude list rather
than adding to it. The default list contains `vendor/**/*`. Setting only
`gemfiles/**/*` dropped that entry, so rubocop walked into `vendor/bundle`,
found the `.rubocop.yml` of each installed gem, and inherited it. The
protobuf gem pins a cop that rubocop 1.90 removed.

`inherit_mode: merge: [Exclude]` keeps the defaults and adds `gemfiles/**/*`
to them. The rubocop job installs gems into `vendor/bundle`, so this only
appeared in CI.

Also set `NewCops: disable`. That silences the pending cop list that made up
the rest of the failure output. Enabling the new cops instead adds several
hundred offenses, including cops that conflict with the deliberate `::`
constant prefix style used throughout this gem.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@skunkworker
skunkworker merged commit 2b677a2 into master Aug 27, 2026
20 checks passed
@skunkworker
skunkworker deleted the aug26_fix_ci branch August 27, 2026 04:54
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.

1 participant