Skip to content

v2.27.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 10:08
· 35 commits to main since this release

Features

  • Rule provenance in the JSON report. Every suggestion of the --json correction report now names the rule that produced it ("rule": "git_not_command"), so editor plugins and scripts can filter, group or debug suggestions. The field is optional, the schema_version stays 1, and the interactive mode is unchanged.
  • Rule metadata with --list-rules --json. The JSON form of --list-rules now prints one object per rule with its name, priority, enabled_by_default, requires_output and side_effect fields instead of a bare array of names, which makes it usable for generating settings files and documentation. The plain text listing is unchanged.

Verification

  • Full test suite, gofmt, go vet and the rule list check pass; CI is green on Linux, macOS and Windows with lint and the 94% coverage gate (94.9% measured).
  • Distribution manifests are regenerated for 2.27.0 and the AUR package is published as 2.27.0-1.
  • Live checks: go-fuck --json --force-command "git brnch" reports "rule": "git_not_command", and go-fuck --list-rules --json lists the metadata of all 251 rules.

Upgrade

Homebrew, Scoop and AUR update through their package managers; go install github.com/leafevans/go-fuck/v2/cmd/go-fuck@latest picks up 2.27.0.

Changelog

Full Changelog: v2.26.1...v2.27.0