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

Suggests to convert symbols :==, :<=> and the like to snake_case #65

Closed
vderyagin opened this issue Apr 18, 2013 · 3 comments
Closed

Suggests to convert symbols :==, :<=> and the like to snake_case #65

vderyagin opened this issue Apr 18, 2013 · 3 comments

Comments

@vderyagin
Copy link

~ $ cat bug.rb 
p :==, :<=>, :>, :<, :>=, :<=
~ $ rubocop bug.rb 
== bug.rb ==
C:  1: Use snake_case for symbols.
C:  1: Use snake_case for symbols.
C:  1: Use snake_case for symbols.
C:  1: Use snake_case for symbols.
C:  1: Use snake_case for symbols.
C:  1: Use snake_case for symbols.

1 files inspected, 6 offences detected
~ $ ruby --version; rubocop --version
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
0.5.0
@bbatsov
Copy link
Collaborator

bbatsov commented Apr 18, 2013

Sorry about that. It's now fixed on master.

@vderyagin
Copy link
Author

Thanks.

Here are some more fancy symbols, you might want to add those too:

!=
!~
&
+@
-@
/
//
<<
===
=~
>>
[]=

@bbatsov
Copy link
Collaborator

bbatsov commented Apr 18, 2013

You reminded me that I had tacked this problem the wrong way. The updated code should support all operators in a much more reliable (and simple) manner.

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

2 participants