Repository navigation
v2.31.0
Features
-
Contradictory rule settings are reported.
exclude_ruleswins overrulesandpriority, so a rule that appears in bothrulesandexclude_rulesis either redundant or silently ignored, and apriorityoverride for an excluded or disabled rule never applies. A correction run now warns about these contradictions, andgo-fuck --doctorhas a newrulescheck that lists them:rules "git_push" also appears in exclude_rulespriority "git_push" is ignored because the rule is excludedpriority "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 vetand 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
ruleswarning line ingo-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