v0.1.5
Install
go install github.com/quality-gates/messgo/cmd/messgo@latestChanged
Design/GlobalVariableis 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 viag.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 newreport-immutable=trueproperty 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
GlobalVariablecorrectly classifies a variable declared in one file but mutated in another (util.MutatedGlobalNames,model.File.MutatedGlobals).
See CHANGELOG.md for the full history.