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

Fixes the rubocop violation 'Lint/AmbiguousRegexpLiteral' #1025

Conversation

pmatsinopoulos
Copy link

Summary

Refs: #1021

Fixes the Lint/AmbiguousRegexpeLilteral rubocop offence.

Details

Calls such as Given /.../ do, having the regular expression literal not wrapped in parentheses are a rubocop violation. They have been turned to Given(/.../) do. Also, there were some calls to RSpec matcher match written as match /.../ which have been turned to match(/.../).

Motivation and Context

Contribute to the process of eliminating the rubocop offending code.

How Has This Been Tested?

I've run all the tests. They are green. There was no need to add new tests.

Screenshots (if appropriate):

N/A

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)
  • Styling change

Checklist:

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

@mattwynne
Copy link
Member

LGTM!

@mattwynne mattwynne merged commit dcd7ae9 into cucumber:master Sep 19, 2016
@mattwynne
Copy link
Member

Thanks a lot @pmatsinopoulos! 👍

@pmatsinopoulos pmatsinopoulos deleted the fix-style-violations-1021-ambiguous-regexp-literal branch September 20, 2016 20:54
@lock
Copy link

lock bot commented Oct 25, 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 25, 2018
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.

2 participants