I've never used go before, so I this is a naive, but working approach to support simplify and minify in editorconfig files. I have not looked at adding tests yet, but will add tests if this code change approach is agreeable.
Adding, for e.g. -s or -mn to the shfmt call leads to consistent results (i.e. if -s is on, then for the opts=, opts="simplify=true", we get the second result above, but the opts="minify=true" option stays consistent with minify respected).
I've never used
go
before, so I this is a naive, but working approach to supportsimplify
andminify
in editorconfig files. I have not looked at adding tests yet, but will add tests if this code change approach is agreeable.Manual testing below.
Adding, for e.g.
-s
or-mn
to theshfmt
call leads to consistent results (i.e. if-s
is on, then for theopts=
,opts="simplify=true"
, we get the second result above, but theopts="minify=true"
option stays consistent withminify
respected).Closes #819.