Skip to content

Seeing unless !thing breaks my brain #284

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
Apr 24, 2025

Conversation

issyl0
Copy link
Member

@issyl0 issyl0 commented Apr 24, 2025

  • If not not thing, so it's actually yes thing!
  • Enable the RuboCop rule and add justification to the style guide.

- If not not thing, so it's actually yes thing!
- Enable the RuboCop rule and add justification to the style guide.
@Copilot Copilot AI review requested due to automatic review settings April 24, 2025 11:21
@issyl0 issyl0 requested a review from a team as a code owner April 24, 2025 11:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR aims to enforce a clearer conditional style by enabling RuboCop’s Style/NegatedUnless rule and updating the style guide accordingly. Key changes include enabling the rule in the configuration file and adding a description with examples in the style guide.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
config/default.yml Enables RuboCop's Style/NegatedUnless rule for clearer conditionals.
STYLEGUIDE.md Updates the style guide with a clear guideline and examples discouraging the use of negated unless.

Copy link
Contributor

@elenatanasoiu elenatanasoiu left a comment

Choose a reason for hiding this comment

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

🚢

@issyl0 issyl0 merged commit a448ab6 into main Apr 24, 2025
10 checks passed
@issyl0 issyl0 deleted the unless-then-a-negation-breaks-my-brain branch April 24, 2025 12:14
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