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

run JuliaFormatter on Base64 stdlib #47151

Closed
wants to merge 4 commits into from

Conversation

Moelf
Copy link
Contributor

@Moelf Moelf commented Oct 13, 2022

part of:

this is one of the smallest stdlib with some interesting patterns. We can use this to test/suggest
features (mostly, how to opt-out of certain formatting) to JuliaFormatter

cc. @domluna

@@ -69,10 +69,10 @@ function Base.unsafe_write(pipe::Base64EncodePipe, ptr::Ptr{UInt8}, n::UInt)::In
i = 0
p_end = ptr + n
while true
buffer[i+1] = encode(b1 >> 2 )
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are examples of unwanted alignment change

this can also happen at location of = instead of ()

@Moelf Moelf changed the title test JuliaFormatter on Base64 stdlib run JuliaFormatter on Base64 stdlib Oct 13, 2022
@ViralBShah
Copy link
Member

It seems that the Formatter here is making some things worse, which were hand formatted for readability.

@Moelf
Copy link
Contributor Author

Moelf commented Oct 29, 2022

indeed. we're waiting for upstream to make more things "opt in": domluna/JuliaFormatter.jl#561

@ViralBShah
Copy link
Member

Close this for now and reopen when upstream addresses the formatting issues?

@Moelf
Copy link
Contributor Author

Moelf commented Dec 6, 2022

why not leave it open?

@Moelf Moelf closed this Dec 6, 2022
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

Successfully merging this pull request may close these issues.

2 participants