Repository navigation
v2.30.0
Features
- Unknown rule names in the settings are reported. A typo in
rules,exclude_rulesorprioritysilently changed the behavior: an excluded rule kept running, a rule listed inruleswas never enabled, and a priority override was never applied. The names are now validated against the built-in rules, so a correction run prints a warning next to the unknown settings keys, andgo-fuck --doctorlists them in the config check with the setting and the name (for exampleexclude_rules "git_pushh"). The check covers therules,exclude_rulesandprioritysettings.
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: a settings file with
exclude_rules: ["git_pushh"]produces the warning during a correction run and a warning line ingo-fuck --doctor, while the built-in rule names andAll rules enabledstay silent. - Distribution manifests are regenerated for 2.30.0 and the AUR package is published as 2.30.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.30.0.
Changelog
- 22bfa6c: feat(settings): report unknown rule names in the settings (@leafevans)
Full Changelog: v2.29.0...v2.30.0