v1.12.0
What's Changed
Features
- exported: improve error message by @ccoVeille in #1403
- modifies-parameter: handle slices.Delete and slices.DeleteFunc by @vbvictor in #1427
- identical-branches: check branches of "if ... else if" chains by @chavacava in #1440
- feature: detect identical-branches in switch statements by @chavacava in #1448
- feature: new rule identical-switch-conditions by @chavacava in #1451
- feature: new rule identical-ifelseif-conditions by @chavacava in #1454
- Split
identical-branchesinto 3 rules by @chavacava in #1453 - feature: new rule useless-fallthrough by @chavacava in #1462
- struct-tag: support spanner struct tag by @sarthakw7 in #1479
- feature: new rule package-directory-mismatch by @vbvictor in #1429
- feature: detect useless options in spanner struct tag by @chavacava in #1483
- feature: struct-tag warns on (useless) options on ignored fields by @chavacava in #1487
- feature: new rule
use-waitgroup-goby @chavacava in #1484 - feature: new rule unsecure-url-scheme by @chavacava in #1478
Bug fixes
- fix(1438): enforce-switch-style - false positive with pure return switch by @chavacava in #1446
- fix: default formatter generates an extra new line by @chavacava in #1485
Updates
- chore(deps): update module golang.org/x/text to v0.28.0 by @renovate[bot] in #1467
- chore(deps): update module golang.org/x/sys to v0.35.0 by @renovate[bot] in #1466
- fix(deps): update module golang.org/x/mod to v0.27.0 by @renovate[bot] in #1468
- fix(deps): update module golang.org/x/tools to v0.36.0 by @renovate[bot] in #1469
Docs
- docs: add DeepWiki link to README by @alexandear in #1432
- docs: add missing use-waitgroup-go TOC entry by @alexandear in #1492
- docs: add info about
golangcode snippets by @alexandear in #1494
New Contributors
- @sarthakw7 made their first contribution in #1479
Full Changelog: v1.11.0...v1.12.0