Skip to content

Releases: mgechev/revive

v1.3.7

07 Feb 17:05
5c5d6c1
Compare
Choose a tag to compare

Changelog

  • 3a62091 Adds rule max-control-nesting (#967)
  • f547cb5 Check function literals in unused-param (#966)
  • 4b62e4b Update list of contributors (#960)
  • 64dda06 feat: capitalise var naming to IDs (#964)
  • ef34f92 fix 968 by removing references to black and white lists (#969)
  • af4f9ea fix(deps): update module golang.org/x/tools to v0.17.0 (#963)
  • 5c5d6c1 fix: enforce-repeated-arg-type-style in config (#970)
  • 9abe06a refactor: rename blacklist to blocklist and whitelist to allowlist (#946)
  • be35a88 unhandled-error: use full function name in error message (#962)

v1.3.6

07 Jan 18:10
e33fb87
Compare
Choose a tag to compare

Changelog

  • e33fb87 fix: remove errored replace directive, fix go install (#957)

v1.3.5

03 Jan 23:25
f8e122f
Compare
Choose a tag to compare

Changelog

  • fd9a130 Add denyRegex support for import-alias-naming rule (#927)
  • 5ccebe8 Code cleaunp (#905)
  • d631844 Fix link to the build (#911)
  • cd2737a Load config from different locations prefer XDG_CONFIG_HOME before HOME (#912)
  • 9a2eab3 [dot-imports] support allow list of packages (#939)
  • d3aa99c chore(deps): update module github.com/spf13/afero to v1.11.0 (#945)
  • cdb8268 cleanup rules descriptions (#908)
  • 70ceb1c cleanup: removes or names unused parameters and receivers to _ (#907)
  • 29ba247 cli: refactor tests: use TestMain, t.Setenv (#931)
  • 36c2ee2 code cleanup: replace interface{} with any (#906)
  • 5c69df7 doc: fix examples (#899)
  • 9e80d93 extend parsing instructions to use json object instead of plain txt (#929)
  • 8d5724f feat: add support for enforce-repeated-arg-type-style rule (#953)
  • 5009140 feat: add support for enforce-slice-style rule (#900)
  • bcae8c7 fix trailing whitespaces (#917)
  • 12dd587 fix(deps): update module github.com/fatih/color to v1.16.0 (#933)
  • 8dbd587 fix(deps): update module golang.org/x/tools to v0.14.0 (#915)
  • cdc8caf fix(deps): update module golang.org/x/tools to v0.15.0 (#935)
  • 2862d06 fix(deps): update module golang.org/x/tools to v0.16.0 (#944)
  • 90b2112 fix(deps): update module golang.org/x/tools to v0.16.1 (#949)
  • f8e122f fix: add-constant struct tags in anonymous struct literals false positive (#954)
  • 2a1701a fix: enable tests in the test/utils.go file (#930)
  • 07eb596 fix: ignore dot import aliases in import-alias-naming rule (#938)
  • fb5bbe7 fix: literal calls case (#909)
  • 25ae73a fix:ignore color marks when compare stings in test (#926)
  • cb72bd8 formatters return output (#921)
  • 7da6a39 modifies-value-receiver: warn on slice or map (#943)
  • 1ef3c0f refactor: remove refs to io/ioutil (#918)
  • ccae54e refactor: remove unused parameter from pick function (#932)
  • 573f715 var-naming: avoid allocations with (*regexp.Regexp).MatchString (#928)
  • 782f0f1 variable to skip package name checks (#941)

v1.3.4

17 Sep 09:42
93219da
Compare
Choose a tag to compare

Changelog

  • 95acb88 Add unchecked-type-assertion (#889)
  • 356e667 feat: add support for enforce-map-style rule (#895)
  • f900b6c feat: add support for import-alias-naming rule (#881)
  • 883c4cc fix(deps): update module github.com/chavacava/garif to v0.1.0 (#882)
  • 3da2646 fix(deps): update module golang.org/x/tools to v0.13.0 (#887)
  • 0357df7 fix: add missing defer when unlocking mutex (#879)
  • ca0678c fix: dot-imports does not check test files (#884)
  • 7dffe3c quit config asap, remove unused pkg info (#896)
  • 93219da updates checksums (#897)

v1.3.3

24 Aug 17:44
Compare
Choose a tag to compare

Changelog

  • 72f9108 (var-naming) support private uppercase constants #865 (#866)
  • e5d5d09 Adding Checker Go library to the list of Who Uses. (#842)
  • 4c84a17 Allow import-blacklist to run against go test files (#862)
  • 2b4286e Drop if-return from default ruleset (#843)
  • ca38cc3 Fix typo in example documentation for early-return (#834)
  • e758901 Revert "fix: unnecesary alert for use-any when comments inside interface{} (#873)" (#874)
  • a270125 Update defaults.toml to sort rules (#844)
  • 9a87e6f Update goreleaser
  • b31eb18 adds [allowRegex] parameter for unused-parameter and unused-receiver rules (#858)
  • 2a1838f adds default config to enable all rules work out of the box (#830)
  • 68bf7e5 build: remove go 1.17.x from ci (#833)
  • a4ae369 build: shift to the supported go versions (1.20 and 1.21) (#878)
  • 95fcfe3 doc: add milvus to README usage (#845) (#847)
  • 7bd6668 feat: add rule for redundant import alias (#854)
  • 7cb4540 fix #846: time-equal garbled message when time returned from function (#868)
  • 9acfcc8 fix #863:false positive on return statement in a func lit passed to the deferred function (#870)
  • 16871ed fix #864: confusing-naming FP on methods of generic types (#869)
  • 9117f8e fix(deps): update github.com/chavacava/garif digest to 4752330 (#831)
  • 26bc59f fix(deps): update github.com/chavacava/garif digest to 4bd63c2 (#838)
  • 5ef33f1 fix(deps): update github.com/chavacava/garif digest to 8144c22 (#836)
  • da1c99d fix(deps): update module github.com/burntsushi/toml to v1.3.2 (#835)
  • 9564ad9 fix(deps): update module golang.org/x/tools to v0.10.0 (#841)
  • 6a2c5b1 fix(deps): update module golang.org/x/tools to v0.11.0 (#848)
  • df39256 fix(deps): update module golang.org/x/tools to v0.11.1 (#855)
  • b4fc3db fix(deps): update module golang.org/x/tools to v0.12.0 (#859)
  • 7cfe9d8 fix(deps): update module golang.org/x/tools to v0.9.3 (#837)
  • 4ee7542 fix: false positive in import-shadowing for method names (#876)
  • a155d92 fix: support method call from structures for string-format (#840)
  • 519ffbd fix: unnecesary alert for use-any when comments inside interface{} (#873)
  • ae07914 ifelse: option to preserve variable scope (#832)
  • 8941d19 imporve var-naming - add upperCaseConst option to allow UPPER_CASED constants #851 (#852)
  • 310d1d7 per-rule file exclude filters (#850) (#857)
  • 4bb48df refactor: extract shared code for linting if-else chains (#821)
  • 19a95d9 resolve #867: remove k[A-Z][A-Za-z\d]*$ sub-rule from var-naming (#871)

v1.3.2

16 May 18:58
81d85b5
Compare
Choose a tag to compare

Changelog

  • cd336fc Fix invalid toml in rule.add-constant example (#819)
  • ed6d9ce Fix prefix trimming in struct-tag (#827)
  • 6d5bc51 Move away from deprecated ioutils (#825)
  • 5558566 Prevent empty-block when looping over call expr
  • e20c778 add nolint to default list of acceptable comments for comment-spacings (#822)
  • 81d85b5 fix #824 (#829)
  • dc6909b fix tests not passing after the modif of the default rules list (#817)
  • b508fa8 fix(deps): update module golang.org/x/tools to v0.9.1 (#811)
  • 022236f fix: error message typo in revivelib.New

v1.3.1

16 Mar 20:43
b03e54f
Compare
Choose a tag to compare

Changelog

  • b03e54f empty-block: Fix false positive on select {} (#805)

v1.3.0

14 Mar 23:20
5db07b5
Compare
Choose a tag to compare

Changelog

v1.2.5

26 Jan 21:54
a4f4632
Compare
Choose a tag to compare

Changelog

  • 32a0cb8 Allows inversing the semantics of string-format rule configurations (#765)
  • 5f26378 Comment spacing rule (#761)
  • b4201ff Fix broken link of 'Comment Directives' in README (#753)
  • b87d391 Fix early-return false positive and other tweaks (#776)
  • 5cc9e27 docs(README): add missing links and fix a broken one (#758)
  • 3d83403 fix #751 [rule.add-constant] add ignoreFuncs to exclude constants in … (#756)
  • 7b1458a fix #754 [rule.unhandled-error] change arguments to regexp (#757)
  • 1c3a15c fix #759 [rule.add-constant] change 'ignoreFuncs' expressions in documentation and test (#760)
  • a4f4632 fix #781 (#782)
  • ae282a5 fix off by one issue in line and colums (#773)
  • 5fd3b2c fix(deps): update github.com/chavacava/garif digest to b3ef358 (#767)
  • 55e881a fix(deps): update module github.com/burntsushi/toml to v1.2.1 (#766)
  • 54ee9db fix(deps): update module github.com/fatih/color to v1.14.1 (#783)
  • 3fe5f99 fix(deps): update module golang.org/x/tools to v0.2.0 (#763)
  • d5d9da1 fix(deps): update module golang.org/x/tools to v0.3.0 (#772)
  • b4fd11a fix(deps): update module golang.org/x/tools to v0.4.0 (#777)
  • cb6823a fix(deps): update module golang.org/x/tools to v0.5.0 (#780)
  • ec731c0 go get reference updates (#750)
  • 06881a9 speedup branch comparison (#764)

v1.2.4

27 Sep 17:03
3116818
Compare
Choose a tag to compare

Changelog