Skip to content

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 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 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.

3 participants