Julia code formatter / code beautifier



Code formatting is an important task to keep code more easily understandable.

Go have gofmt
Rust have rustfmt
Python have black

I wonder if there’s an active project for such task in Julia.

I’ve found https://github.com/invenia/JuliaFormat.jl from @invenia but it doesn’t seem to be maintained any more.

I wonder what are opinions of core (Base) Julia maintainers about such tools?

Is there a chance to have such tools be very well maintained and be used in Base code?

I also wonder why linter such as https://github.com/tonyhffong/Lint.jl is not currently used in Base (according https://github.com/JuliaLang/julia/blob/master/.travis.yml )

Kind regards


We have a code formatter in the julia VS Code extension that works.

That code is currently being factored out into https://github.com/ZacLN/DocumentFormat.jl. The linting stuff in the VS Code extension is moving into https://github.com/ZacLN/StaticLint.jl.

All of this work is based on CSTParser.jl, which is actively maintained and also used by stuff that Julia Computing is putting out (e.g. femtocleaner).


Is there a VS Code prerelease that works on Julia 0.7 without the highly annoying deprecation messages?


No, we don’t have a 0.7 compatible version at this point.