mvdan / gofumpt

A stricter gofmt
https://pkg.go.dev/mvdan.cc/gofumpt
BSD 3-Clause "New" or "Revised" License
3.15k stars 110 forks source link

Split long lines only available behind environment string #302

Open sevein opened 3 months ago

sevein commented 3 months ago

Hi @mvdan, thanks for maintaning this project. I've noticed that golangci-lint is unable to use gofumpt's feature to split long lines because it's only accessible with the environment string GOFUMPT_SPLIT_LONG_LINES=on which is not something that can be actioned via golangci-lint.

Would you be open to considering adding a new option or incorporating it into the extra rules?

Thank you in advance!

Related: https://github.com/golangci/golangci-lint/discussions/4253