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

Style/IpAddresses fails on 4 point version numbers #8749

Closed
mockdeep opened this issue Sep 19, 2020 · 0 comments · Fixed by #8758
Closed

Style/IpAddresses fails on 4 point version numbers #8749

mockdeep opened this issue Sep 19, 2020 · 0 comments · Fixed by #8758

Comments

@mockdeep
Copy link
Contributor

The following line in my Gemfile caused Style/IpAddresses to report a failure:

gem 'autoprefixer-rails', '10.0.0.2'

Not sure if there's a graceful way to tell the difference between IP addresses and versions. I suppose you could check for gem lines or references to version or VERSION to cover most cases.


Expected behavior

No violation should be reported.

Actual behavior

A violation is reported.

Steps to reproduce the problem

Add any version with 4 numbers to your Gemfile.

RuboCop version

0.91.0 (using Parser 2.7.1.4, rubocop-ast 0.4.2, running on ruby 2.7.1 x86_64-linux)
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 a pull request may close this issue.

1 participant