JuliaFormatter.jl
JuliaFormatter.jl copied to clipboard
Blue style: multiline `using` statements formatted incorrectly
using Unitful: Dimension, DimensionlessQuantity, Frequency, FrequencyFreeUnits, MixedUnits,
NoDims, NoUnits, Number, Quantity, Time, Unitlike, Unit, Units
gets formatted to
using Unitful:
Dimension,
DimensionlessQuantity,
Frequency,
FrequencyFreeUnits,
MixedUnits,
NoDims,
NoUnits,
Number,
Quantity,
Time,
Unitlike,
Unit,
Units
This is exactly what the Blue Style says not to do.
cc @nickrobinson251
yeah... i guess the formatter shouldn't change this case. Or, if the using Unitful: Dimension, DimensionlessQuantity, ...
goes over the line limit just break and continue indented on the next line using Unitful: Dimension, DimensionlessQuantity, ...,\n\tMixedUnits, ...
In this specific case the comma at the end of the first line is the 91st character. There is still space for another character. I believe the original example should not be affected by the formatter.