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

False positive for character literal #349

Closed
agrimm opened this issue Jul 11, 2013 · 0 comments
Closed

False positive for character literal #349

agrimm opened this issue Jul 11, 2013 · 0 comments

Comments

@agrimm
Copy link
Contributor

agrimm commented Jul 11, 2013

When using a word array for a question mark, a false positive report of a character literal happens.

arr = %w{? A}

gives

question_in_word_array.rb:1:10: C: Do not use the character literal - use string literal instead.
arr = %w{? A}
         ^
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

No branches or pull requests

1 participant