Hacker News new | ask | show | jobs
by jidiculous 1850 days 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.
2 comments

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

I usually use Damian Gryski's: https://github.com/dgryski/semgrep-go