Skip to content

Releases

v1.17.1

Choose a tag to compare

@github-actions github-actions released this 07 Oct 12:09
Immutable release. Only release title and notes can be modified.
a13d6ab

What's Changed

A patch release with fixes for rules that reused configuration across runs and for false positives/negatives.

Important

add-constant now inspects nested call arguments and function literal signatures (#1843), so existing projects may see new findings after upgrading.

Bug Fixes

Documentation

Dependency Updates

New Contributors

Full Changelog: v1.17.0...v1.17.1

v1.17.0

Choose a tag to compare

@github-actions github-actions released this 23 Sep 15:38
916b341

What's Changed

The documentation website revive.run has been rebuilt with Hugo, replacing the Gatsby site that had served the docs since 2018 (#74). See mgechev/revive.run#89 by @alexandear, closes #1647.

Features

Important

unexported-return and redefines-builtin-id now report code that previous versions accepted, so existing projects may see new findings after upgrading.

Bug Fixes

Documentation

Dependency Updates

  • Update module github.com/golangci/golangci-lint/v2 to v2.13.2 by @renovate[bot] in #1787
  • Update module golang.org/x/mod to v0.41.0 by @renovate[bot] in #1788
  • Update module golang.org/x/tools to v0.50.0 by @renovate[bot] in #1792
  • Update golang docker tag to v1.27.1 by @renovate[bot] in #1791

Chores & Internal

New Contributors

Full Changelog: v1.16.0...v1.17.0

v1.16.0

Choose a tag to compare

@github-actions github-actions released this 21 Aug 16:47
b9bc17a

What's Changed

Features

Bug Fixes

  • use-errors-new: disable for Go 1.26 by @alexandear in #1697
  • use-any: enable only for Go 1.18+ by @alexandear in #1699
  • empty-block: skip bare for-range loops by @alexandear in #1710
  • comment-spacings: ignore //#nosec directive by default by @alexandear in #1713
  • add-constant: ignore empty string literals by @alexandear in #1716
  • unhandled-error: ignore fmt.Fprintf with strings.Builder or bytes.Buffer by @alexandear in #1726
  • package-comments: fix false positive on CRLF sources by @Eljees in #1763
  • checkstyle formatter: fix invalid XML for filenames with & or " by @VXNCXNX in #1770
  • Log rule internal failures instead of aborting File.lint by @far4599 in #1719
  • Stamp release binaries with version, commit, date and builder by @Eljees in #1764

Documentation

Dependency Updates

  • Update module github.com/golangci/golangci-lint/v2 to v2.11.1 by @renovate[bot] in #1668
  • Update module codeberg.org/chavacava/garif to v0.2.1 by @renovate[bot] in #1673
  • Update module github.com/golangci/golangci-lint/v2 to v2.11.2 by @renovate[bot] in #1674
  • Update module golang.org/x/sync to v0.20.0 by @renovate[bot] in #1675
  • Update module golang.org/x/sys to v0.42.0 by @renovate[bot] in #1677
  • Update module mvdan.cc/sh/v3 to v3.13.0 by @renovate[bot] in #1680
  • Update module github.com/golangci/golangci-lint/v2 to v2.11.3 by @renovate[bot] in #1681
  • Update module golang.org/x/mod to v0.34.0 by @renovate[bot] in #1683
  • Update module golang.org/x/tools to v0.43.0 by @renovate[bot] in #1684
  • Update module github.com/fatih/color to v1.19.0 by @renovate[bot] in #1691
  • Update module github.com/golangci/golangci-lint/v2 to v2.11.4 by @renovate[bot] in #1692
  • Update module golang.org/x/text to v0.35.0 by @renovate[bot] in #1693
  • Update module github.com/hashicorp/go-version to v1.9.0 by @renovate[bot] in #1700
  • Update module mvdan.cc/sh/v3 to v3.13.1 by @renovate[bot] in #1702
  • Update golang docker tag to v1.26.2 by @renovate[bot] in #1703
  • Update module golang.org/x/mod to v0.35.0 by @renovate[bot] in #1705
  • Update module golang.org/x/tools to v0.44.0 by @renovate[bot] in #1708
  • Update gomod by @renovate[bot] in #1709
  • Update module github.com/golangci/golangci-lint/v2 to v2.12.1 by @renovate[bot] in #1721
  • Update module github.com/mattn/go-isatty to v0.0.22 by @renovate[bot] in #1722
  • Update golang docker tag to v1.26.3 by @renovate[bot] in #1727
  • Update module github.com/golangci/golangci-lint/v2 to v2.12.2 by @renovate[bot] in #1725
  • Update gomod by @renovate[bot] in #1730
  • Update module golang.org/x/tools to v0.45.0 by @renovate[bot] in #1729
  • Update module golang.org/x/sys to v0.45.0 by @renovate[bot] in #1738
  • Update golang docker tag to v1.26.4 by @renovate[bot] in #1740
  • Update module golang.org/x/tools to v0.46.0 by @renovate[bot] in #1746
  • Update module golang.org/x/tools to v0.47.0 by @renovate[bot] in #1751
  • Update golang docker tag to v1.26.5 by @renovate[bot] in #1762
  • Update module golang.org/x/tools to v0.48.0 by @renovate[bot] in #1759
  • Update module golang.org/x/mod to v0.40.0 by @renovate[bot] in #1758

Chores & Internal

New Contributors

Full Changelog: v1.15.0...v1.16.0

v1.15.0

Choose a tag to compare

@github-actions github-actions released this 06 Mar 10:03
815ffde

What's Changed

BREAKING CHANGE: package-related checks moved from var-naming to a new rule package-naming.
var-naming options skipPackageNameChecks, extraBadPackageNames, and skipPackageNameCollisionWithGoStd are deprecated and treated as no-ops.

Features

Bug fixes

  • fix: forbid enabling both enableAllRules and enableDefaultRules by @alexandear in #1642

Docs

Updates

Other

Full Changelog: v1.14.0...v1.15.0

v1.14.0

Choose a tag to compare

@github-actions github-actions released this 10 Feb 22:24
b38af67

What's Changed

Features

Bug fixes

Updates

  • chore(deps): update module golang.org/x/text to v0.31.0 by @renovate[bot] in #1584
  • fix(deps): update module github.com/hashicorp/go-version to v1.8.0 by @renovate[bot] in #1591
  • fix(deps): update module golang.org/x/sync to v0.19.0 by @renovate[bot] in #1606
  • fix(deps): update module golang.org/x/mod to v0.31.0 by @renovate[bot] in #1607
  • fix(deps): update module golang.org/x/tools to v0.40.0 by @renovate[bot] in #1608
  • chore(deps): update module golang.org/x/text to v0.32.0 by @renovate[bot] in #1609
  • fix(deps): update module github.com/burntsushi/toml to v1.6.0 by @renovate[bot] in #1611
  • chore(deps): update module golang.org/x/sys to v0.41.0 by @renovate[bot] in #1627
  • fix(deps): update module golang.org/x/mod to v0.33.0 by @renovate[bot] in #1630
  • fix(deps): update module golang.org/x/tools to v0.42.0 by @renovate[bot] in #1631
  • chore(deps): update module golang.org/x/tools to v0.40.0 by @renovate[bot] in #1614
  • fix(deps): update module golang.org/x/tools to v0.41.0 by @renovate[bot] in #1621
  • fix(deps): update module golang.org/x/mod to v0.32.0 by @renovate[bot] in #1619

Docs

Other

New Contributors

Full Changelog: v1.13.0...v1.14.0

v1.13.0

Choose a tag to compare

@chavacava chavacava released this 14 Nov 11:06
ac5f398

What's Changed

Features

Bug fixes

  • fix: rule struct-tag false positive on validate:omitempty by @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 effect by @chavacava in #1531
  • fix: rule struct-tag add all missing go-validator tags (#1526) by @focusaurus in #1533
  • fix: rule confusing-naming false 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

New Contributors

Full Changelog: v1.12.0...v1.13.0

v1.12.0

Choose a tag to compare

@chavacava chavacava released this 28 Aug 11:12
e1d05f7

What's Changed

Features

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

New Contributors

Full Changelog: v1.11.0...v1.12.0

v1.11.0

Choose a tag to compare

@chavacava chavacava released this 12 Jul 07:54
9224327

What's Changed

Features

Bug fixes

  • fix: var-naming rule extraBadPackageNames type by @ldez in #1404
  • unexported-return: exclude main package and test files by @ccoVeille in #1399
  • unexported-return: fix type aliases support by @ldez in #1408
  • var-naming: option to skip initialism name checks by @krenzler in #1415
  • var-naming: handle possible panic by @alexandear in #1405

Updates

  • chore(deps): update module golang.org/x/text to v0.26.0 by @renovate[bot] in #1400
  • fix(deps): update module golang.org/x/tools to v0.34.0 by @renovate[bot] in #1402
  • chore(deps): update module golang.org/x/sys to v0.34.0 by @renovate[bot] in #1416
  • fix(deps): update module golang.org/x/sync to v0.16.0 by @renovate[bot] in #1417
  • chore(deps): update module golang.org/x/text to v0.27.0 by @renovate[bot] in #1418
  • fix(deps): update module golang.org/x/mod to v0.26.0 by @renovate[bot] in #1419
  • fix(deps): update module golang.org/x/tools to v0.35.0 by @renovate[bot] in #1423

Docs

  • docs: improve Installation section by @alexandear in #1409
  • docs: improve unhandled-error ignore argument examples by @scop in #1412

New Contributors

Full Changelog: v1.10.0...v1.11.0

v1.10.0

Choose a tag to compare

@chavacava chavacava released this 28 May 11:28
6becd54

What's Changed

New Contributors

Full Changelog: v1.9.0...v1.10.0

v1.9.0

Choose a tag to compare

@chavacava chavacava released this 11 Apr 16:13
57ed899

Changelog

  • 343da9f Refactor/exported (#1299)
  • 379856a chore(deps): update dependency go to v1.24.2 (#1285)
  • 2442da0 chore(deps): update module golang.org/x/sys to v0.32.0 (#1293)
  • a9ee63c chore(deps): update module golang.org/x/text to v0.24.0 (#1296)
  • 5f32e8b chore: add lint and all targets to Makefile (#1298)
  • 8221f85 chore: remove edited trigger (#1309)
  • c882cb8 exported: correctly report deprecation-only comments (#1295)
  • 02f0a40 feature: Improve error-strings rule to detect acronyms and proper nouns (#1287)
  • 7f7f31a feature: add support for properties tag in struct-tag rule (#1289)
  • f4e39a7 fix false positive in useless-break when a label follows a break (#1286)
  • 535ec5a fix(deps): update module golang.org/x/tools to v0.32.0 (#1301)
  • 57ed899 fix: add missing TypeCheck call (#1308)
  • d6ad7ce fix: call fmt.Errorf with wrong err (#1290)
  • fbd90be fix: race condition of Package fields (#1307)
  • 1cb97fd refactor: fix typos in comments and struct names (#1304)
  • f0eea95 struct-tag: change reported messages and refactor implementation (#1292)