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

autocorrect of if statements with parenthesis places space in incorrect location #783

Closed
tas50 opened this issue Feb 1, 2014 · 1 comment
Assignees
Labels

Comments

@tas50
Copy link
Contributor

tas50 commented Feb 1, 2014

Given this code:

if(node[:nginx_simplecgi][:cgi] || node[:nginx_simplecgi][:php])

rubocop -a produces this code:

i fnode[:nginx_simplecgi][:cgi] || node[:nginx_simplecgi][:php]

instead of:

if node[:nginx_simplecgi][:cgi] || node[:nginx_simplecgi][:php]
@bbatsov
Copy link
Collaborator

bbatsov commented Feb 1, 2014

I'll have that fixed.

@ghost ghost assigned bbatsov Feb 1, 2014
@bbatsov bbatsov closed this as completed in 2561f03 Feb 1, 2014
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