Skip to content

chore: update ruby version, audit some cops#88

Merged
viacheslav-rostovtsev merged 3 commits intogoogleapis:mainfrom
viacheslav-rostovtsev:dev/virost/chore/update_ruby_31
Apr 28, 2025
Merged

chore: update ruby version, audit some cops#88
viacheslav-rostovtsev merged 3 commits intogoogleapis:mainfrom
viacheslav-rostovtsev:dev/virost/chore/update_ruby_31

Conversation

@viacheslav-rostovtsev
Copy link
Member

No description provided.

@viacheslav-rostovtsev viacheslav-rostovtsev requested a review from a team April 24, 2025 22:42
Style/ReturnNilInPredicateMethodDefinition:
Enabled: true

Style/SafeNavigationChainLength: # new in 1.68
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you provide a short note explaining why we want to disable this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

added

Lint/NumberedParameterAssignment:
Enabled: true

# Can easily appear in the generated code
Copy link
Contributor

Choose a reason for hiding this comment

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

We do run a pass of rubocop -a in the generator. Is this insufficient to remove cases of this and some of the others below?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see the benefit of doing this as I barely agree that having += 0 in the codebase is problematic.

@dazuma
Copy link
Contributor

dazuma commented Apr 25, 2025

We'll also need to remove ruby 3.0 from the CI matrix.

Copy link
Contributor

@dazuma dazuma left a comment

Choose a reason for hiding this comment

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

Okay let's give this a shot. When you merge, make sure you use feat: so release-please will offer to release a minor version (1.31.0).

@viacheslav-rostovtsev viacheslav-rostovtsev merged commit bcf4086 into googleapis:main Apr 28, 2025
6 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