Skip to content

v0.1.5

Choose a tag to compare

@jonbaldie jonbaldie released this 05 Jun 12:08
c3f86a8

Install

go install github.com/quality-gates/messgo/cmd/messgo@latest

Changed

  • Design/GlobalVariable is now mutation-aware and far quieter. By default it reports only package-level variables that are actually mutated somewhere in the package (reassigned, incremented/decremented, written through via g.f/g[k], or address-taken). Effectively-constant globals — sentinel errors, compiled regexps, lookup tables — are no longer reported, so the genuinely risky shared state isn't drowned out. The new report-immutable=true property re-enables flagging read-only package-level variables.

Added

  • Cross-file (package-wide) analysis. messgo now groups a package's files before running rules, so GlobalVariable correctly classifies a variable declared in one file but mutated in another (util.MutatedGlobalNames, model.File.MutatedGlobals).

See CHANGELOG.md for the full history.