domluna / JuliaFormatter.jl

An opinionated code formatter for Julia. Plot twist - the opinion is your own.

Home Page:https://domluna.github.io/JuliaFormatter.jl/dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"no indent rule" also for other blocks than modules

ranocha opened this issue · comments

Would it be possible to have a no-indent-rule also for other top level blocks besides modules?

Our use case in Trixi.jl is something like this

@muladd begin

# lots of stuff

end # @muladd

A lot of our files look like this. Thus, JuliaFormatter.jl basically indents all of our files - which we would like to avoid.

CC @sloede
Xref trixi-framework/Trixi.jl#1403 (comment)