4 ms·
Gofmt was the catalyst for me. I do it with StandardJS in Visual Studio Code on save automatically, I won't waste my time manually formatting code - or caring
by benologist 10y ago
Gofmt was the catalyst for me. I do it with StandardJS in Visual Studio Code on save automatically, I won't waste my time manually formatting code - or caring about it - again.
Personal code formatting preferences is a problem. Devs should just let go of it, once it applies automatically your preferences quickly change.
You can even wire up GitHub etc repos to automatically reject pull requests that add pointless formatting preferences someone will pointedly defend.
- jeremy_wiebe 10y agoCan you point me to more information regarding Github and rejecting pull requests that are strictly formatting changes? Sounds interesting...
- benologist 10y agoThe formatters have command line programs that return error codes if a file requires fixing so you can require not getting an error from that in your testing or building process.