JuliaFormatter.jl icon indicating copy to clipboard operation
JuliaFormatter.jl copied to clipboard

Optionally disable enforcement of trailing zeros in float literals

Open serenity4 opened this issue 3 years ago • 1 comments

Having trailing zeros in floats is mostly a matter of style, and would IMHO fit very well as a parameter to be configured in a .JuliaFormatter.toml. If there is any chance to expose it, it would be very much appreciated!

serenity4 avatar Dec 03 '21 17:12 serenity4

I think something similar to the trailing_comma option could work. You could also get very granular and have one option for leading 0s and one for trailing 0s

domluna avatar Dec 07 '21 00:12 domluna