Skip to content

v0.4.0

Latest

Choose a tag to compare

@fmsouza fmsouza released this 03 Aug 00:02
3f1ed20

Added

  • (lang) support Go (#66)

    Go joins TypeScript, JavaScript and Python. Two built-in rules ship with it:
    lanekeep/no-context-in-struct and lanekeep/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

  • BindingKind gained three variants: Type, Receiver and TypeParam, which Go
    needs and the earlier languages had no word for. Adding a variant to a public enum breaks
    an exhaustive match downstream, which is why this is 0.4.0 rather than 0.3.3.

    No effect on rule authors: ctx.bindingKind returns strings, and the new ones are only
    ever produced for Go files. Only a Rust crate matching on lanekeep_lang::BindingKind
    needs a new arm.

Fixed

  • (release) stop proposing a release for the one already in flight (#65)