Releases: mgechev/revive
Releases · mgechev/revive
v1.4.0
What's Changed
- docs: fix TOC item by @ldez in #1017
- docs: typo in add-constant configuration by @amincheloh in #1018
- #1002 - add "checkPublicInterface" option to "exported" rule to allow check documentation on public methods on public interfaces by @comdiv in #1003
- fix(deps): update module golang.org/x/tools to v0.24.0 by @renovate in #1019
- Add multiple scopes support to string-format rule by @KirillSluchaev in #1009
- check clear/max/min in redefines-builtin-id rule on go1.21+ by @skaji in #1024
- check param, result, type param of function in redefines-builtin-id rule by @skaji in #1023
- extract go version without depending on go list by @chavacava in #1025
- use a default Go version (1.0) in absence of go.mod by @chavacava in #1028
- fix #1029 by @chavacava in #1030
- docs: fix typo in comments by @alexandear in #1037
- docs: update Go wiki links by @alexandear in #1036
- fix lint issues by @ytnsym in #1038
- Move away from deprecated github.com/pkg/errors by @alexandear in #1039
- fix gitignore by @ytnsym in #1042
- adds tests for specific go versions by @chavacava in #1043
New Contributors
- @amincheloh made their first contribution in #1018
- @KirillSluchaev made their first contribution in #1009
- @skaji made their first contribution in #1024
- @ytnsym made their first contribution in #1038
Full Changelog: v1.3.9...v1.4.0
v1.3.9
v1.3.7
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
v1.3.5
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
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
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
andunused-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
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
v1.3.0
Changelog
- cab1184 Add tags to docker images built by GoReleaser (#794)
- aea6254 Update default rule set to match recommendations (#799)
- d7bedbd add golint's package name MixedCaps rule as in https:/golang/lint/blob/83fdc39ff7b56453e3793356bcff3070b9b96445/lint.go#L561-L563 (#797)
- 6fd2c76 fix issue #520 (#802)
- 10d4f5f fix issue #792 (#793)
- e8d5df7 fix(deps): update github.com/chavacava/garif digest to b8c73b2 (#798)
- 5db07b5 fix(deps): update module github.com/fatih/color to v1.15.0 (#803)
- 4981346 fix(deps): update module golang.org/x/tools to v0.6.0 (#785)
- 9a00c13 fix(deps): update module golang.org/x/tools to v0.7.0 (#801)
- 8c2cd33 fixing comment spacings (#789)
- b2bc00b refactor: Reduce package-comments output scope (#791)