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/MethodName false positive #8683

Closed
ldebortoli opened this issue Sep 10, 2020 · 1 comment · Fixed by #8693
Closed

Naming/MethodName false positive #8683

ldebortoli opened this issue Sep 10, 2020 · 1 comment · Fixed by #8693
Labels
bug good first issue Easy task, suitable for newcomers to the project help wanted

Comments

@ldebortoli
Copy link

Detects mothod names with non ascii characters. crear_línea_última_vista is in snake_case

módulos/última_vez.rb:120:9: C: Naming/MethodName: Use snake_case for method names.
    def crear_línea_última_vista(msj)
        ^^^^^^^^^^^^^^^^^^^^^^^^

Also happens with Naming/FileName and Naming/VariableName


Expected behavior

Any detection

Actual behavior

Detected in non snake_case style

Steps to reproduce the problem

Create a method named 'crear_línea_última_vista'

RuboCop version

Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:

$ [bundle exec] rubocop -V
0.90.0 (using Parser 2.7.1.4, rubocop-ast 0.3.0, running on ruby 2.6.6 x86_64-linux)
@marcandre marcandre added bug good first issue Easy task, suitable for newcomers to the project help wanted labels Sep 10, 2020
@marcandre
Copy link
Contributor

marcandre commented Sep 10, 2020

Agreed. Should be easily fixed with a-z => [[:lower:]] and similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Easy task, suitable for newcomers to the project help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants