KEMBAR78
Add support for or nodes to `Lint/LiteralAsCondition` by Zopolis4 · Pull Request #14389 · rubocop/rubocop · GitHub
Skip to content

Conversation

Zopolis4
Copy link
Contributor

Just the basic support for now, although I think i might need to match what was done in #13966? @Earlopain, any thoughts?


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.

@Earlopain
Copy link
Contributor

Sure. That would probably be needed here. I get the same behaviour with this branch at the moment

@Zopolis4 Zopolis4 marked this pull request as ready for review July 31, 2025 03:17
@Zopolis4
Copy link
Contributor Author

Done.

@koic
Copy link
Member

koic commented Jul 31, 2025

Can you add a changelog entry?

@Zopolis4
Copy link
Contributor Author

Realized I didn't actually add the changelog to the index when committing, fixed.

@bbatsov bbatsov merged commit 8e6be28 into rubocop:master Jul 31, 2025
23 checks passed
@bbatsov
Copy link
Collaborator

bbatsov commented Jul 31, 2025

Thanks!

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.

4 participants