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/VariableNumber is broken for two digit numbers #3650

Closed
ptarjan opened this issue Oct 19, 2016 · 1 comment
Closed

Style/VariableNumber is broken for two digit numbers #3650

ptarjan opened this issue Oct 19, 2016 · 1 comment

Comments

@ptarjan
Copy link
Contributor

ptarjan commented Oct 19, 2016

Expected behavior

$ cat a.rb
a_42 = 1
$ rubocop a.rb --only Style/VariableNumber
Inspecting 1 file
.

1 file inspected, no offenses detected

Actual behavior

$ cat a.rb
a_42 = 1
$ rubocop a.rb --only Style/VariableNumber
Inspecting 1 file
C

Offenses:

a.rb:1:1: C: Style/VariableNumber: Use snake_case for variable numbers.
a_42 = 1
^^^^

1 file inspected, 1 offense detected

Steps to reproduce the problem

See above

RuboCop version

$ rubocop -V
0.44.1 (using Parser 2.3.1.4, running on ruby 2.2.5 x86_64-darwin15)
@Ana06
Copy link
Contributor

Ana06 commented Oct 31, 2016

This issue can be closed: #3653 😉

@bbatsov bbatsov closed this as completed Oct 31, 2016
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.

3 participants