Ok, but does my answer really matter? Because in the end it's what any linter will tell us about the software. And since it is not hard to do, my suggestion always is to make use of some of the great linters that exist.
In a new project I always start off with all the linters (in golangci_lint) active, and then deactivate the ones that I don't want. You can also do it the other way around, just a matter of "how to begin with linting". The advantage of using some linter would be that it is also a kind of quality fixation on the code. Perhaps deciding on which linter(s) to use at first and then slowly "inject" more. This post is not about finger-pointing btw, because if needed, I would offer my help with this. But I won't touch the functions with the high cognitive complexity ;-) Op za 10 dec. 2022 om 22:34 schreef 'Dan Kortschak' via golang-nuts < golang-nuts@googlegroups.com>: > On Sat, 2022-12-10 at 14:44 +0100, Marcello H wrote: > > golangci_lint ... > > > > Op za 10 dec. 2022 om 13:17 schreef Brian Candler > > <b.cand...@pobox.com>: > > > The question remains, which linter(s) are you using? > > golangci_lint is not really an answer to this question since it's just > a collection of linters, many of which have arguable utility/value. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/golang-nuts/MM3W5oNw4-0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/9827b253f9d8cc8c821874675adad2130612060e.camel%40kortschak.io > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CADBSaR08GT4U2q0pMq%2BxNuHaWNZPmNY4%3DKh_nYrczjcVmYQnZA%40mail.gmail.com.