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

Unexpected EOF formatting #488

Open
adfoster-r7 opened this issue Jan 5, 2025 · 0 comments
Open

Unexpected EOF formatting #488

adfoster-r7 opened this issue Jan 5, 2025 · 0 comments

Comments

@adfoster-r7
Copy link

adfoster-r7 commented Jan 5, 2025

Hi there; Thanks for the gem!

With the following test_case.rb file:

let(:valid_data) do
  Base64.decode64 <<~EOF
    aGVsbG8gd29ybGQK
  EOF
end

And running the command:

bundle exec stree format --print-width=100 ./test_case.rb

The resulting code appears to be less intuitive to read:

let(:valid_data) { Base64.decode64 <<~EOF }
    aGVsbG8gd29ybGQK
  EOF

Expected result:

let(:valid_data) do
  Base64.decode64 <<~EOF
    aGVsbG8gd29ybGQK
  EOF
end

Versions:

$ ruby --version
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x86_64-darwin23]

$ bundle exec stree version                                
6.2.0

Apologies if I've reported this issue to the wrong repo or I've misunderstood the output; thanks!

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