Added
-
(lang) support Go (#66)
Go joins TypeScript, JavaScript and Python. Two built-in rules ship with it:
lanekeep/no-context-in-structandlanekeep/no-package-init. -
(release) let Go projects pin lanekeep with
go tool(#67)go get -tool github.com/fmsouza/lanekeep/cmd/lanekeep go tool lanekeep check ./...
The fifth distribution channel, and the first with no publish step of its own — a Go
module version is a git tag, so the tags this release already pushes are its versions.
Changed
-
BindingKindgained three variants:Type,ReceiverandTypeParam, which Go
needs and the earlier languages had no word for. Adding a variant to a public enum breaks
an exhaustivematchdownstream, which is why this is 0.4.0 rather than 0.3.3.No effect on rule authors:
ctx.bindingKindreturns strings, and the new ones are only
ever produced for Go files. Only a Rust crate matching onlanekeep_lang::BindingKind
needs a new arm.
Fixed
- (release) stop proposing a release for the one already in flight (#65)