A comprehensive batch of lint rules for Go, shared across all your repos. - wangjohn/levenshtein
So I built Levenshtein (https://github.com/wangjohn/levenshtein). It's a curated set of Go lint rules and verification checks that run locally and in CI.
The rule set is pretty comprehensive and builds on Staticcheck and other existing analyzers, with some additional rules of my own. It includes:
- Go vet - Staticcheck - Modernize - Bug finding analyzers - Vulnerability / security analyzers
There's also some fun optional checks that you can configure like:
- Semantic linters using Jev - Race detectors - Mutation testing for tests - and many more!
I've been hooking it up to my own projects and caught dozens of bugs already. For example, one finding was a test that simulated database changes with os.WriteFile but ignored whether the writes succeeded.
Would love feedback, particularly about the default rules and what should be default/what shouldn't!
0 comments
No comments yet.
Read the full thread on Hacker News →
Related stories
- Hacker News · 3 points · 5 days ago
- Launch HN: Vespper (YC F24) – SOTA Docx MCPvespper.comHacker News · 31 points · 4 days ago
- Hacker News · 42 points · 1 day ago
- Show HN: NetWasm – Independent .NET Compiler/Runtime (82.5 KB Hello World in C#)playground.netwasm.comHacker News · 5 points · 4 days ago
- Hacker News · 1 points · 10 days ago
- Hacker News · 15 points · 15 days ago