Follow

Do you prefer opinionated tools for linting/formatting?

The first thing I do when programming in a new environment is find an alternative for `go-fmt`. It is so addictive to just focus on the task at hand.

@vnarek As long as those opinions are in line with the standard practices of the language and can be customized, then yes, i prefer my linting and formatting tools to be opinionated

@freemo I meant not customizable. Believe me, it is a feature.

@vnarek i would never use a linter if i couldnt customize it

@freemo Bad wording again. It was more about formatting. Not my day today. 😅

@vnarek I dont need to customize my formatting tool as readily as I might a linter. But even then being able to customize it would be important to me. A prime example is how it handles long lines that need to be wrapped. I usually like to set a higher limit to trigger word wrapping than what tends to be default. Often I may do no wrapping at all and leave it to the dev to wrap it manually.

@freemo Yeah most of the formatters do let you change line length. Go-fmt does not enforce a particular line length and just makes sure that any possible indentation you choose for lines is consistent across users.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.