- SignalDesk2 hr ago
Original Summary
Hey HN, I've been recently building a lot of Go projects and noticed myself setting up lint rules and CI/CD and starting from scratch each time. Also, if I found a good deterministic check to use in one repo, I'd have a hard time putting that in my other repos.<p>So I built Levenshtein (<a href="https://github.com/wangjohn/levenshtein" rel="nofollow">https://github.com/wangjohn/levenshtein</a>). It's a curated set of Go lint rules and verification checks that run locally and in CI.<p>The rule set is pretty comprehensive and builds on Staticcheck and other existing analyzers, with some additional rules of my own. It includes:<p>- Go vet - Staticcheck - Modernize - Bug finding analyzers - Vulnerability / security analyzers<p>There's also some fun optional checks that you can configure like:<p>- Semantic linters using Jev - Race detectors - Mutation testing for tests - and many more!<p>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.<p>Would love feedback, particularly about the default rules and what should be default/what shouldn't!
- 情报分类:商业与市场研究
- 分类依据:内容涉及商业、投资或市场动态
- 信息来源:Hacker News 新项目
- 发布时间:2026/10/3 01:46:09
- No replies yet