Skip to content
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

Chore: RuboCop Style/MultilineIfModifier #924

Merged

Conversation

Drenmi
Copy link
Contributor

@Drenmi Drenmi commented Mar 4, 2019

Description

Part of RuboCop Quest.

This change fixes all instances of MultilineIfModifier.

Additional Notes

This introduces two more instances of MethodLength and LineLength, but since those are not addressed yet, I chose to focus on the linter at hand.

@@ -44,10 +44,6 @@ class TestCase < MiniTest::Test
extend LiveServerConfig
self.live_server = ENV['LIVE']

def test_default
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't find a single reference to this, and the trailing modifier can not be used to prevent method definition, so it was actually not doing anything.

@olleolleolle
Copy link
Member

@Drenmi Hello, and thanks for joining this Quest! Shoutout to Stockholm Ruby

Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

🍐 💚 Tests are green, and we're coming closer!

@olleolleolle olleolleolle merged commit 5b49e6c into lostisland:master Mar 4, 2019
@olleolleolle olleolleolle mentioned this pull request Mar 4, 2019
@Drenmi Drenmi deleted the chore/rubocop-multiline-if-modifier branch March 4, 2019 08:23
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.

None yet

2 participants