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

Lint/BlockAlignment has a bug with multiline blocks #2892

Closed
ptarjan opened this issue Feb 26, 2016 · 1 comment
Closed

Lint/BlockAlignment has a bug with multiline blocks #2892

ptarjan opened this issue Feb 26, 2016 · 1 comment

Comments

@ptarjan
Copy link
Contributor

ptarjan commented Feb 26, 2016

# bad
foo.
  map do |b|
  b
end

it allowed by the Cop and shouldn't be. Instead it should be autocorrected to

# good
foo.
  map do |b|
    b
  end
@ptarjan ptarjan changed the title Lint/EndAlignment has a bug Lint/EndAlignment has a bug with multiline blocks Feb 26, 2016
@ptarjan ptarjan changed the title Lint/EndAlignment has a bug with multiline blocks Lint/BlockAlignment has a bug with multiline blocks Feb 27, 2016
@ptarjan
Copy link
Contributor Author

ptarjan commented Mar 8, 2016

#2900

@ptarjan ptarjan closed this as completed Mar 8, 2016
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

1 participant