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 in UnneededCapitalW #1263

Closed
jonas054 opened this issue Aug 13, 2014 · 1 comment
Closed

False positive in UnneededCapitalW #1263

jonas054 opened this issue Aug 13, 2014 · 1 comment
Labels

Comments

@jonas054
Copy link
Collaborator

In #1229 @mmzoo wrote:

Just FYI: I have a similar issue with the UnneededCapitalW cop for:

def dangerous_characters
  %W( \000 \001 \027 \002 \003 \004 \005 \006 \007 \00 \a )
end

Leads to a

Do not use %W unless interpolation is needed. If not, use %w.

@jonas054 jonas054 added the bug label Aug 13, 2014
bbatsov added a commit that referenced this issue Aug 16, 2014
[Fix #1263] Do not report %W literals with special characters
@mmzoo
Copy link

mmzoo commented Aug 18, 2014

Sweet! Thank you for your time.

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

2 participants