Documentation
¶
Overview ¶
Package belint is a go/analysis linter for the be matcher library. It flags assertions that hide a raw expression inside be.True()/be.False() — where the failure message degenerates to "expected true" — and be.Not(...) compositions that have a dedicated matcher, suggesting (and with -fix, applying) the matcher spelling from the anti-pattern table in MATCHERS.md.
Point-of-use feedback is the goal: a diagnostic on the offending line is how both humans and LLM agents discover a matcher exists without reading docs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "belint", Doc: "flags raw expressions wrapped in be.True()/be.False() and be.Not(...) compositions that have a dedicated be matcher", URL: "https://github.com/expectto/be/tree/main/x/belint", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer flags be assertion anti-patterns and suggests matcher spellings.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.