Skip to content

Releases: ssgreg/lintuition

Release list

v0.2.0

Choose a tag to compare

@ssgreg ssgreg released this 05 Oct 09:46
4ba15cc

Two new linters, and the false positives of the first ones fixed. On 25 real repositories the standard linters made 27 true findings and 97 false ones with v0.1.0; each linter was fixed against that set and a held-out set written after its design.

New linters

  • doc-vs-signature: a doc that promises a returned result or error the signature does not have. An HTTP handler's "returns X" about its response is told apart from a promise to the Go caller.
  • read-only-promise: a doc that promises no change while the body writes the receiver, a parameter or a package variable.

Fewer false positives

destructive-remediation, suppression-rationale, severe-event-understated, normal-event-at-error, enum-comment-shift, test-name-vs-assertion and doc-vs-table were each reworked on real code. Details per linter: CHANGELOG.

Classifiers

  • Contradictory probability distributions are rejected for every backend, and a cached answer decides the same way every time.
  • openai: reasoning-effort: none makes models that think first (qwen3.x, gemma4 on Ollama) usable.

Install

go install github.com/ssgreg/lintuition/cmd/lintuition@v0.2.0

or download a binary below.

v0.1.0

Choose a tag to compare

@ssgreg ssgreg released this 02 Oct 07:11

First release of lintuition: System One linters for your Go code. It finds places where code says one thing and does another: log messages, test names, comments or metric Help that contradict the surrounding code.

What's in it

  • 15 linters across logs, errors, units, comments, tests, metrics and //nolint reasons. What each one catches and how it decides:docs/linters.md.
  • Classifiers: jev (TypeSafe), openai (OpenAI-compatible APIs, including a local Ollama), claude-code and codex under your own login, and fake for offline runs.
  • golangci-lint v2-shaped config and command line; text, json, sarif, checkstyle, code-climate, junit-xml and github-actions output.
  • Request preview (--dry-run --preview), payload policy, spending budget and answer cache.
  • //nolint that requires a linter name and a reason.
  • Plugins: your own linters and classifiers in a custom binary (lintuition custom).

Install

  go install github.com/ssgreg/lintuition/cmd/lintuition@v0.1.0

or download a binary below.