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

ignores \e as special character in quotes cop #239

Closed
eqv opened this issue Jun 5, 2013 · 1 comment
Closed

ignores \e as special character in quotes cop #239

eqv opened this issue Jun 5, 2013 · 1 comment
Labels

Comments

@eqv
Copy link

eqv commented Jun 5, 2013

This code triggers the "use single quotes cop"

# encoding: utf-8
puts "\e"
== rubo.rb ==
C:  2: Prefer single-quoted strings when you don't need string interpolation or special symbols.

1 file inspected, 1 offence detected
@fuadsaud
Copy link

fuadsaud commented Jun 5, 2013

👍

Used a lot as ANSI escape codes.

@eqv eqv mentioned this issue Jun 6, 2013
@bbatsov bbatsov closed this as completed Jun 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants