Skip to content

v0.1.4

Choose a tag to compare

@jonbaldie jonbaldie released this 05 Jun 09:11
f911688

Install

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

Added

  • New Design/GlobalVariable rule (messgo-native, no PHPMD analog) that detects mutable package-level variables — global shared state that hurts testability and is unsafe under concurrency.
    • Inspects only top-level declarations, so local variables are never flagged.
    • Constants and the blank identifier (var _ = ...) are ignored; grouped var (...) blocks and multi-name specs each flag every name.
    • Available via the design and opinionated rulesets. Excluded from the default go ruleset because some package-level variables are idiomatic in Go (sentinel errors, compiled regexps, registries).

See CHANGELOG.md for the full history.