top | item 27276471

(no title)

jidiculous | 4 years ago

Yeah, that default ruleset is quite sparse. It would be nice to see Go's Code Review Comments (https://github.com/golang/go/wiki/CodeReviewComments) added as a basic ruleset.

discuss

order

leetrout|4 years ago

That is a really great idea. I love that wiki page. Some of them are harder to follow in a team that prefers "expressiveness". Quotes because I think it's easier to follow Go's prescription especially for always returning concrete types instead of interfaces.

> return a concrete type and let the consumer mock the producer implementation