Releases 路 mgechev/revive 路 GitHub
Skip to content

Releases: mgechev/revive

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)

v1.8.0

Choose a tag to compare

@chavacava chavacava released this 30 Mar 11:12
9f5f957

Changelog

  • 561c949 change: replace log with log/slog for logging (#1280)
  • c9c079f chore(deps): update module golang.org/x/sys to v0.31.0 (#1257)
  • dc3de10 chore(deps): update module golang.org/x/text to v0.23.0 (#1259)
  • 54ea25b doc: update description of struct-tag rule (#1262)
  • 4f34235 feature: add suport of mapstructure struct tags in struct-tag rule (#1241)
  • 3bbfedb feature: add suport of validate struct tags in struct-tag rule (#1244)
  • 88d5434 feature: add support for TOML struct tags in struct-tag rule (#1255)
  • 3cf67c5 feature: add support of URL struct tags in struct-tag rule (#1239)
  • a4ee892 feature: add support of datastore struct tags in struct-tag rume (#1240)
  • 88e5689 fix(deps): update module github.com/burntsushi/toml to v1.5.0 (#1276)
  • 8b973cb fix(deps): update module github.com/spf13/afero to v1.13.0 (#1270)
  • 770af80 fix(deps): update module github.com/spf13/afero to v1.14.0 (#1271)
  • c940fa6 fix(deps): update module golang.org/x/mod to v0.24.0 (#1258)
  • 39ae683 fix(deps): update module golang.org/x/tools to v0.31.0 (#1261)
  • b77bb1a fix: cognitive complexity nesting with if-else chains (#1268)
  • 67d0a61 fix: error-strings custom funcs overwrites defaults (#1249)
  • 77f4474 refactor: string-format implements ConfigurableRule (#1251)
  • 43a44af refactor: apply suggestions from gopls modernize (#1282)
  • 9919e6b refactor: replace IsAtLeastGo1* functions by IsAtLeastGoVersion (#1274)
  • b04d5a7 refactor: return error instead of panic (#1252)
  • 6d0498c refactor: simplify File.disabledIntervals, add tests (#1216)
  • 9f5f957 rule: allow lowercased and kebab-cased options (#1272)

v1.7.0

Choose a tag to compare

@chavacava chavacava released this 16 Feb 10:33
8ece20b

Changelog

  • a59a228 chore(deps): update golang docker tag to v1.24 (#1232)
  • 8ece20b feature: add support for omitzero in rule struct-tag (#1238)
  • 4020f43 fix: exclusions are no longer working as before (#1237)