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

Naming/VariableNumber False positive detection with non ascii chars #8726

Closed
ldebortoli opened this issue Sep 16, 2020 · 0 comments · Fixed by #8727
Closed

Naming/VariableNumber False positive detection with non ascii chars #8726

ldebortoli opened this issue Sep 16, 2020 · 0 comments · Fixed by #8727

Comments

@ldebortoli
Copy link

emparejó is not a variable number, and is in normalcase

módulos/triggers.rb:374:13: C: Naming/VariableNumber: Use normalcase for variable numbers.
            emparejó = true
            ^^^^^^^^


Expected behavior

Any detection

Actual behavior

A false positive detection

Steps to reproduce the problem

Create a variable 'emparejó'

RuboCop version

$ [bundle exec] rubocop -V
0.91.0 (using Parser 2.7.1.4, rubocop-ast 0.4.0, running on ruby 2.6.6 x86_64-linux)
koic added a commit to koic/rubocop that referenced this issue Sep 16, 2020
Fixes rubocop#8726.

Fix a false positive for `Naming/VariableNumber`
when naming multibyte character variable name.
bbatsov pushed a commit that referenced this issue Sep 16, 2020
Fixes #8726.

Fix a false positive for `Naming/VariableNumber`
when naming multibyte character variable name.
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