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

Add cake #873

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/JuliaFormatter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ function format(path::AbstractString, options::Configuration)
is_formatted = format(subpath, options)
Threads.atomic_and!(formatted, is_formatted)
end
if formatted.value
println("Well done! ✨ 🍰 ✨")
end
return formatted.value
end
# `path` is not a directory but a file
Expand All @@ -454,7 +457,11 @@ function format(path::AbstractString, options::Configuration)
return true
end
try
return _format_file(path; [Symbol(k) => v for (k, v) in pairs(options)]...)
formatted = _format_file(path; [Symbol(k) => v for (k, v) in pairs(options)]...)
if formatted
println("Well done! ✨ 🍰 ✨")
end
return formatted
catch err
@info "Error in formatting file $path"
@debug "formatting failed due to" exception = (err, catch_backtrace())
Expand Down
Loading