Skip to content

Fix RuboCop offenses introduced by a newer release - #853

Merged
sferik merged 1 commit into
httprb:mainfrom
hakanensari:fix-rubocop-offenses
Aug 25, 2026
Merged

Fix RuboCop offenses introduced by a newer release#853
sferik merged 1 commit into
httprb:mainfrom
hakanensari:fix-rubocop-offenses

Conversation

@lineoffligbot

@lineoffligbot lineoffligbot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

A newer RuboCop release within the Gemfile's ~> 1.85 constraint flags three offenses on main, failing the rubocop job on every open PR. This applies RuboCop's own autocorrections:

  • lib/http/headers.rb: Layout/ExtraSpacing no longer accepts the aligned then keywords in Headers.coerce. If the alignment is worth keeping, the alternative is disabling the cop; its AllowForAlignment option is already on by default and no longer covers this case.
  • lib/http/retriable/performer.rb: Style/DirectiveScope wants rubocop:disable-next instead of a disable/enable pair around a single statement.

bundle exec rubocop: 135 files inspected, no offenses detected.

Autocorrect for offenses introduced by a newer RuboCop release within
the Gemfile's ~> 1.85 constraint.

@sferik sferik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@sferik
sferik merged commit 1ce8e24 into httprb:main Aug 25, 2026
9 checks passed
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