What's Changed
Features
- feature: new rule inefficient-map-lookup by @chavacava in #1491
- feature: new rule
forbidden-call-in-wg-goby @chavacava in #1514 - struct-tag: support codec struct tag by @pashkov256 in #1507
- feature: support
cborstruct tag instruct-tagrule by @chavacava in #1527 - feature: add configuration option in
struct-tagrule to omit checking a tag by @chavacava in #1515 - feature: new rule
unnecessary-ifby @chavacava in #1520 - var-naming: add more bad package names by @Acollie in #1540
- deep-exit: detect exit-triggering flag usage by @uloamaka in #1544
Bug fixes
- fix: rule
struct-tagfalse positive onvalidate:omitemptyby @chavacava in #1525 - import-shadowing: handle versioned packages correctly by @vbvictor in #1445
- package-directory-mismatch: ignore main_test package name by @uloamaka in #1545
- fix: false positive for
return in a defer function has no effectby @chavacava in #1531 - fix: rule
struct-tagadd all missing go-validator tags (#1526) by @focusaurus in #1533 - fix: rule
confusing-namingfalse positive on multiple blank identifiers by @emmanuel-ferdman in #1536 - useless-fallthrough: do not report fallthrough before default by @anupriyakkumari in #1549
- package-directory-mismatch: allow test package names in version paths by @thespags in #1547
- package-directory-mismatch: ignore mismatch in root directory by @uloamaka in #1548
Updates
- fix(deps): update module github.com/spf13/afero to v1.15.0 by @renovate[bot] in #1521
- chore(deps): update golang docker tag to v1.25 by @renovate[bot] in #1474
- docs: fix typos by @alexandear in #1553
- feature: add enableDefaultRules config option by @cce in #1551
- chore(deps): bump Go 1.24 by @alexandear in #1555
- chore(deps): update github.com/golangci/golines digest to 8fd09d3 by @renovate[bot] in #1558
- chore(deps): update golang.org/x/telemetry digest to 5cc343d by @renovate[bot] in #1559
- chore(deps): update module github.com/catenacyber/perfsprint to v0.10.1 - autoclosed by @renovate[bot] in #1560
- chore(deps): update github.com/golangci/gofmt digest to 3e58ba0 by @renovate[bot] in #1557
- chore: update schedule in renovate config by @alexandear in #1571
- chore(deps): update module dev.gaijin.team/go/golib to v0.7.0 - autoclosed by @renovate[bot] in #1570
- chore(deps): update module google.golang.org/protobuf to v1.36.10 - autoclosed by @renovate[bot] in #1569
- fix(deps): update module golang.org/x/sync to v0.18.0 by @renovate[bot] in #1572
- change: merge code-style with style categories by @alexandear in #1573
- chore(deps): update module golang.org/x/sys to v0.38.0 by @renovate[bot] in #1574
- fix(deps): update module golang.org/x/tools to v0.39.0 by @renovate[bot] in #1577
Docs
- docs: update TOC; check for TOC consistency in GHA by @alexandear in #1493
- doc: clearly identify configuration examples by @chavacava in #1504
- doc: add before/after examples to
confusing-resultsdescription by @chavacava in #1503 - doc: add before/after examples to
bool-literal-in-exprdescription by @chavacava in #1500 - docs: fix MD024/no-duplicate-heading lint issue by @alexandear in #1513
- docs: enhance struct-tag rule description by @alexandear in #1512
New Contributors
- @pashkov256 made their first contribution in #1507
- @focusaurus made their first contribution in #1533
- @Acollie made their first contribution in #1540
- @uloamaka made their first contribution in #1545
- @thespags made their first contribution in #1547
- @anupriyakkumari made their first contribution in #1549
Full Changelog: v1.12.0...v1.13.0