Repository navigation
v2.27.0
Features
- Rule provenance in the JSON report. Every suggestion of the
--jsoncorrection 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, theschema_versionstays1, and the interactive mode is unchanged. - Rule metadata with
--list-rules --json. The JSON form of--list-rulesnow prints one object per rule with itsname,priority,enabled_by_default,requires_outputandside_effectfields 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 vetand 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", andgo-fuck --list-rules --jsonlists 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
- 5e8318f: feat(json): report rule provenance and rule metadata (@leafevans)
Full Changelog: v2.26.1...v2.27.0