julia-vscode / StaticLint.jl

Static Code Analysis for Julia
Other
145 stars 28 forks source link

align_matrix yields invalid matrix in combination with missing float "0" #363

Closed schillic closed 1 year ago

schillic commented 1 year ago

If the option align_matrix = true is used, the following happens.

Before formatting

A = [1. 1; 1 -1]

After formatting

A = [1.01; 1 -1]

Expected result

A = [1.0 1; 1 -1]
schillic commented 1 year ago

Sorry, I think this is the wrong place to report this. I went to https://github.com/domluna/JuliaFormatter.jl/issues/713.