Skip to content

v2.31.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 05:09
· 20 commits to main since this release

Features

  • Contradictory rule settings are reported. exclude_rules wins over rules and priority, so a rule that appears in both rules and exclude_rules is either redundant or silently ignored, and a priority override for an excluded or disabled rule never applies. A correction run now warns about these contradictions, and go-fuck --doctor has a new rules check that lists them:

    • rules "git_push" also appears in exclude_rules
    • priority "git_push" is ignored because the rule is excluded
    • priority "git_push" is ignored because the rule is not enabled

    Consistent settings stay silent, and unknown names keep the dedicated warning from 2.30.0.

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.
  • Live checks with an isolated configuration directory: contradictory settings produce the warning during a correction run and the rules warning line in go-fuck --doctor; the default settings and a consistent configuration stay silent.
  • Distribution manifests are regenerated for 2.31.0 and the AUR package is published as 2.31.0-1.

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.31.0.

Changelog

  • e274952: feat(settings): report contradictory rule settings (@leafevans)
  • cee4570: fix(settings): apply De Morgan's law to the enabled check

Full Changelog: v2.30.0...v2.31.0