Skip to content

Fix a false positive for Lint/AssignmentInCondition when assigning in numblocks #13775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

Earlopain
Copy link
Contributor

The first block check is redundant, since the method already checks for blocks.


Before submitting the PR make sure the following are checked:

  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
  • Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

…in numblocks

The first block check is redundant, since the method already checks for blocks.
@koic
Copy link
Member

koic commented Jan 30, 2025

The JRuby CI matrix has failed. Can you rebase with the latest master branch?
https://github.com/rubocop/rubocop/actions/runs/13050101095/job/36408285714?pr=13775

@koic
Copy link
Member

koic commented Jan 30, 2025

Ah, it seems it was already up to date, so I will re-run the CI.

@koic
Copy link
Member

koic commented Jan 30, 2025

In any case, the JRuby failure is unrelated to this change, so let’s investigate it separately. Thank you.

@koic koic merged commit 829f16e into rubocop:master Jan 30, 2025
22 of 23 checks passed
@Earlopain
Copy link
Contributor Author

The failure looks related to the jar-dependencies update from the latest JRuby release: https://github.com/jruby/jruby/releases/tag/9.4.11.0

Probably have to pin it yet again until that is available in CI?

@koic
Copy link
Member

koic commented Jan 30, 2025

The issue might be different this time and has been reported in jruby/jruby#8606. To avoid being affected by patch versions, the JRuby version will be pinned to 9.4.10.0 for a while. I've opened #13776.

@Earlopain
Copy link
Contributor Author

Ah, right. You removed it for 9.4.10.0 but then it started to fail again in 9.4.11.0. I thought that wasn't available yet for CI but it seems to be since about an hour ago!

@Earlopain Earlopain deleted the assign-cond-numblock branch January 30, 2025 11:18
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy