revive

🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint

MIT License

Stars
4.8K
Committers
79

Bot releases are visible (Hide)

revive - v1.3.9 Latest Release

Published by github-actions[bot] 3 months ago

Changelog

  • 0eb2e245233f91f6b0ceab2f08b68079a736e957 Drop go 1.20, add go 1.22 in GH actions (#1015)
  • bedce659ca558b797148b21953e12131be735867 Fix goreleaser (#1014)
  • 9ec5e553e9be5cbf9efd3950d789dbd767137ea0 Update goreleaser version to 1.22 (#1016)
revive - v1.3.7

Published by github-actions[bot] 9 months ago

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)
revive - v1.3.6

Published by github-actions[bot] 10 months ago

Changelog

  • e33fb87 fix: remove errored replace directive, fix go install (#957)
revive - v1.3.5

Published by github-actions[bot] 10 months ago

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)
revive - v1.3.4

Published by github-actions[bot] about 1 year ago

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)
revive - v1.3.3

Published by github-actions[bot] about 1 year ago

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)
revive - v1.3.2

Published by github-actions[bot] over 1 year ago

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
revive - v1.3.1

Published by github-actions[bot] over 1 year ago

Changelog

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

Published by github-actions[bot] over 1 year ago

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://github.com/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)
revive - v1.2.5

Published by github-actions[bot] over 1 year ago

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)
revive - v1.2.4

Published by github-actions[bot] about 2 years ago

Changelog

  • a4add4a docs(README): Add neovim support in text editors section (#734)
  • 7c2ebbd fix #744 (#746)
  • 3116818 fix bug #736 (#745)
  • 553604e fix bug #739: empty-lines false positive (#742)
  • 160dfbd fix documentation (#730)
  • fa350e6 fix some typos in repository (#728)
revive - v1.2.3

Published by github-actions[bot] about 2 years ago

Changelog

  • 556d485 release with go 1.19 (#727)
revive - v1.2.2

Published by github-actions[bot] about 2 years ago

Changelog

  • 238d290 Add windows arm64 to the ignore list
  • ce7f066 Allow to customize user functions in rule error-strings (#703)
  • db56db0 Capture yet more bad defer / recover patterns (#719)
  • 8dd3945 Check whether the tag name is duplicate or not (#706)
  • 31fbdb1 Fix/677 (#678)
  • e10678f Fixes issue #619 imports-blacklist support regex (#684)
  • 04728cf Lint cleanup (#679)
  • 387d727 Make package comment more confident (#694)
  • 71ef7fd Move to the default importer from gcexportdata (#723)
  • b981427 Remove built-in types that existing only for the Go documentation (#675)
  • 7cd66dc Tidy mod file
  • a67ecdd add rule datarace (#683)
  • fcc59ad add testing.FailNow and related function to unreachable check (#711)
  • 60e1ae4 adds checks for protobuf struct tags (#707)
  • fe7a52d chore(deps): update module go to 1.19 (#715)
  • 23ed063 doc: add devlake to README usage (#704)
  • e9d5b48 fix #670 (#708)
  • 2aac974 fix issue #691 (#700)
  • 76ef1d7 fix(deps): update github.com/chavacava/garif digest to 908ad76 (#695)
  • 5caa8cf fix(deps): update github.com/chavacava/garif digest to 9351721 (#702)
  • 3f9c0c2 fix(deps): update github.com/chavacava/garif digest to d6fd61e (#699)
  • 20101b3 fix(deps): update module github.com/burntsushi/toml to v1.2.0 (#712)
  • bcffce6 fix(deps): update module golang.org/x/tools to v0.1.11 (#696)
  • 83e66f1 fix(deps): update module golang.org/x/tools to v0.1.12 (#720)
  • dc30eb1 fix(receiver-naming): distinguish types with parameters (#692)
  • 4daa573 fix(var-naming): set node to package name for underscore in package name (#689)
  • 0f4df1c fix: update go.sum (#714)
revive - v1.2.1

Published by github-actions[bot] over 2 years ago

Changelog

  • 5996bb0 Fix README example's missing import (#661)
  • d2ab719 Makefile: fix VERSION_FLAGS (#667)
  • 639d12b Merge branch 'master' of github.com:mgechev/revive
  • 23828cc Remove debugging output (#672)
  • 8bbeab2 Update the contributors list
  • b6c86a2 fix issue 664 (#665)
  • 87f8e29 fix(deps): update module github.com/burntsushi/toml to v1.1.0 (#668)
revive - v1.2.0

Published by github-actions[bot] over 2 years ago

Changelog

  • fa939ad Adds support for new type alias any in the rule redefines-built-in (#659)
  • 1c28383 Allow revive to be called with extra linters (#650)
  • 54d9a09 Incorrect handling of token.{LEQ,GEQ} for constant-logical-expr (#642)
  • 318db94 Separating lib from cli (#655)
  • 671c55d adds rule use-any (#660)
  • 5f6f0eb adds usage of revive as third party library (#653)
  • 61222a1 fix(deps): update github.com/chavacava/garif digest to 5cad0b5 (#651)
  • de50c6a fix(deps): update module golang.org/x/tools to v0.1.10 (#649)
  • 577441d format sources w/ gofumpt (#643)
  • f335f97 range-val-address: improve detection (#647)
  • 5ce2ff5 removes duplicated utility function (#652)
revive - v1.1.4

Published by github-actions[bot] over 2 years ago

Changelog

  • d4fbc92 fix issue #637 (#638)
revive - v1.1.3

Published by github-actions[bot] over 2 years ago

Changelog

  • c0f2d40 Add Docker image in release (#489) (#590)
  • be81121 Add banned characters rule (#532) (#591)
  • 0ee7866 Add build and test steps in CI on pull request (#602)
  • 8a3653c Add debug logger (#604)
  • 5d04216 Add optimize-operands-order rule (#599) (#603)
  • af953e6 Allow whitelist for the context parameter check (#616)
  • b7d1908 Avoids missing version description when using go install (#600)
  • 2c895fb Code cleanup (#606)
  • 3f99b6c File file-header.go (#601)
  • c3af594 Fix config initialisation
  • 099eeac Fix get default config test
  • faba17a Fix package check in error-strings rule (#610) (#611)
  • 935acca Fix typo for gorush description (#588)
  • e0fa03a Max open files (#628)
  • 76b8c57 Memoization of rule arguments (#595)
  • baa70eb Run go mod tidy to update go.sum (#633)
  • 9c30b44 Run revive over a invalid go source file (#364) (#598)
  • b331445 Set all version flags at build time so they have correct values (#593)
  • 12e4e8c Update config.go
  • 1c654af Update config.go
  • 0fada9d Update error-strings rule (#608) (#609)
  • 8aab7c6 Update module github.com/BurntSushi/toml to v1 (#620)
  • 43d0e31 Update module golang.org/x/tools to v0.1.8
  • 47ba3e3 Update module golang.org/x/tools to v0.1.9 (#626)
  • 62db669 add new rule time equal (#584)
  • b721f69 fix #622 (Rule 'var-naming' should allow Fuzz_xxx) (#623)
  • 47a1ced fix: invalid rule name in error message (#627)
  • 55e1594 fixes false positive in unconditional-recursion
  • c350076 login to github registry to push docker images (#630)
  • 71b31e2 overwrite error status code from config with set_exit_status (#589)
  • 6545203 refactor(cyclomatic): improved message for cyclomatic rule (#629)
  • 58e6243 use ghcr.io (#631)
  • 305f6c1 var-naming rule: note about initialisms
revive - v1.1.2

Published by github-actions[bot] about 3 years ago

Changelog

d7c8e25 Update dead cognitive-complexity link (#569)
527bea8 Update github.com/mgechev/dots commit hash to e955255 (#578)
567f022 Update module github.com/fatih/color to v1.13.0 (#576)
0e551e2 Update module golang.org/x/tools to v0.1.6 (#575)
111721b Update module golang.org/x/tools to v0.1.7 (#586)
d7e3d5e fix: time-naming issue #571 (#572)
b1f0148 fix: markdown headers (#570)
9b85893 fix: switch to re.MatchString(string) instead re.Match([]byte(string)) (#574)
0bcc996 fixed some complex code (#580)
e545098 fixes issue #577 (#581)

revive - v1.1.1

Published by github-actions[bot] about 3 years ago

Changelog

c383001 Add Cadence by Uber
18cdb55 Exported config (#565)
097f0bb better messages for rules' config errors (#563)
2855950 fix issue 556 (#557)
406b1ce range-val-address: fix false positive (#554)
351bb12 updates installation instructions (#562)

revive - v1.1.0

Published by github-actions[bot] about 3 years ago

Changelog

7dde483 Add Unwrap to common methods (#547)
c582d62 Update module github.com/BurntSushi/toml to v0.4.1 (#549)
b5b6565 Update module golang.org/x/tools to v0.1.5 (#544)
a9ba67b Update the list of contributors
c939bb6 add new rule useless-break (#551)
98c374d add tests on common methods handling (#548)

Package Rankings
Top 0.66% on Proxy.golang.org
Badges
Extracted from project README
Build Status