Skip to content

fix(ci): rubocop Style/DirectiveScope and json pretty_unparse removal - #166

Merged
bhoradc merged 1 commit into
mainfrom
fix-ci-rubocop-json-dep-bitrot
Oct 2, 2026
Merged

bhoradc merged 1 commit into
mainfrom
fix-ci-rubocop-json-dep-bitrot

Conversation

@bhoradc

@bhoradc bhoradc commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

Recent rubocop and json gem releases broke CI on main.

  • rubocop 1.90 added Style/DirectiveScope, which flags the Style/RedundantSelf disable/enable pair in configure_client. Dropped the pair and switched self.superclass to superclass (self.class kept, reserved-keyword conflict). Runtime behavior unchanged.
  • json 3.0.0 removed JSON.pretty_unparse. Swapped the two call sites in transactions.rb to JSON.pretty_generate (always was an alias for it; runtime behavior unchanged).

Local verification: bundle exec rake release:test → 372/0, bundle exec rubocop -E -S → 0 offenses, gem build aws-record.gemspec → success.

Note: record.rb#table_name has the same self.superclass + rubocop:disable Style/RedundantSelf pattern, but rubocop isn't flagging it today. Leaving as-is; will revisit if a future rubocop release surfaces it.

Drafted with AI assistance; reviewed and tested locally.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Recent rubocop and json gem releases broke CI on main.

rubocop 1.90 added Style/DirectiveScope which flags the Style/RedundantSelf disable/enable pair in configure_client. Dropped the pair and switched self.superclass to superclass.

json 3.0.0 removed JSON.pretty_unparse. Swapped the two call sites in transactions.rb to JSON.pretty_generate.

Runtime behavior unchanged in both cases. record.rb#table_name has the same pattern but rubocop isn't flagging it, so leaving that one alone for now.
@bhoradc
bhoradc requested a review from a team as a code owner October 1, 2026 23:07
@bhoradc
bhoradc merged commit cccc6d3 into main Oct 2, 2026
13 checks passed
@bhoradc
bhoradc deleted the fix-ci-rubocop-json-dep-bitrot branch October 2, 2026 01:51
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