Serenity
A Go linter fast enough that teams keep it in CI. I lead its development.
Most Go linters solve the wrong problem: golangci-lint has over 100 linters and a YAML config you spend more time tuning than writing code. Serenity ships 24 rules across six categories (Errors, Imports, Best Practices, Correctness, Complexity, Naming), chosen for the signal-to-noise ratio a real team tolerates. One command to install:
go install github.com/serenitysz/serenity@latestZero configuration needed on the first run. serenity init creates a config file when you want to customize; serenity check runs concurrent analysis across all packages, with caching between runs so the second check is instant:
serenity init # creates serenity.json in your project root
serenity check ./... # analyze all packages--write applies safe auto-fixes directly to source. Add --unsafe for a broader set of rewrites: the flag distinction makes it clear what changes are reversible and what needs review:
serenity check --write ./... # apply safe fixes only
serenity check --write --unsafe ./... # apply all fixesContext#
A linter fails in one of two ways: it takes long enough that people stop reading the output, or it reports so much that the real problems are buried. Both end the same way: someone adds a skip flag to CI, and from that day the codebase has no automated quality gate at all.
Approach#
Serenity treats speed as a feature, not a nice-to-have: analysis runs in parallel per package with caching between runs, the default rule set is the one a team would actually keep enabled, and it works with zero configuration on the first run. The CLI is designed for the two places it lives, a developer terminal and a CI log, and reads well in both.
Engineering decisions#
- Zero-config by default: a linter nobody has to configure is a linter everybody runs.
- Parallel analysis with a package-level cache, so the second run on a large repository costs a fraction of the first.
- Deterministic output: the same commit always produces the same diagnostics, which is what makes the check trustworthy in CI.
- Every rule has to justify its noise: if a diagnostic is not actionable, it does not ship.
Outcome#
Shorter pipelines and a signal people trust. The check stays in the pull request instead of being disabled the first time it gets in the way: which is the only measure of a linter that matters.