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

FormatString is confused by other "format"s with EnforcedStyle: percent #1388

Closed
aripollak opened this issue Oct 14, 2014 · 2 comments
Closed

Comments

@aripollak
Copy link

I have this in .rubocop.yml:

FormatString:
  EnforcedStyle: percent

Rubocop finds false positives here:

 C: Favor String#% over format.
    controller.render format => body, status: status
                      ^^^^^^
 C: Favor String#% over format.    
    body = Rabl.render(resource_errors, 'errors/index', format: format)
                                                                ^^^^^^
@aripollak aripollak changed the title FormatString is confused by Rails' format with EnforcedStyle: percent FormatString is confused by other "format"s with EnforcedStyle: percent Oct 14, 2014
@bbatsov
Copy link
Collaborator

bbatsov commented Oct 14, 2014

What's your version? I seem to recall fixing this.

@aripollak
Copy link
Author

Using 0.26.1.

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