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

Fix Rubocop violations in the legacy API adapter #1148

Closed
wants to merge 1 commit into from

Conversation

danascheider
Copy link
Contributor

This PR fixes the Rubocop violations in the legacy API adapter and reconfigures Rubocop not to ignore this file.

Summary

Removed the legacy API adapter file from the .rubocop-todo.yml file and then fixes the Rubocop violations that occur in that file.

Details

There were two method calls where the args needed to be enclosed in parentheses; I added parens to both.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I've added tests for my code
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@ghost ghost assigned danascheider Jul 4, 2017
@danascheider danascheider force-pushed the fix-rubocop-in-legacy-adapter branch from 54f1246 to 7f53a04 Compare July 10, 2017 23:03
@danascheider danascheider force-pushed the fix-rubocop-in-legacy-adapter branch from 7f53a04 to 5da5091 Compare July 11, 2017 19:30
Copy link
Member

@nodo nodo left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@nodo nodo left a comment

Choose a reason for hiding this comment

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

Actually, sorry @danascheider, if I remember correctly in cucumber codebase there is the convention to avoid parenthesis when the result of a method call is discarded. I wanted to write a custom cop for that, I will try to find some time for it.

@olleolleolle
Copy link
Contributor

@nodo An issue with precisely these parens missing is that they yield Ruby warnings. Perhaps the convention would opt for no-warnings, when there's no other way?

@olleolleolle
Copy link
Contributor

@nodo "I think", I should add.

@brasmusson
Copy link
Contributor

Let's not waste any time on the (hopefully soon) to be removed legacy_api, see #1230.

@lock
Copy link

lock bot commented Oct 29, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2018
@luke-hill luke-hill deleted the fix-rubocop-in-legacy-adapter branch May 3, 2019 08:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants