fix(deps): update module github.com/mgechev/revive to v1.13.0 #45
+52
−80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.2.1→v1.13.0Release Notes
mgechev/revive (github.com/mgechev/revive)
v1.13.0Compare Source
What's Changed
Features
forbidden-call-in-wg-goby @chavacava in #1514cborstruct tag instruct-tagrule by @chavacava in #1527struct-tagrule to omit checking a tag by @chavacava in #1515unnecessary-ifby @chavacava in #1520Bug fixes
struct-tagfalse positive onvalidate:omitemptyby @chavacava in #1525return in a defer function has no effectby @chavacava in #1531struct-tagadd all missing go-validator tags (#1526) by @focusaurus in #1533confusing-namingfalse positive on multiple blank identifiers by @emmanuel-ferdman in #1536Updates
8fd09d3by @renovate[bot] in #15585cc343dby @renovate[bot] in #15593e58ba0by @renovate[bot] in #1557Docs
confusing-resultsdescription by @chavacava in #1503bool-literal-in-exprdescription by @chavacava in #1500New Contributors
Full Changelog: mgechev/revive@v1.12.0...v1.13.0
v1.12.0Compare Source
What's Changed
Features
identical-branchesinto 3 rules by @chavacava in #1453use-waitgroup-goby @chavacava in #1484Bug fixes
Updates
Docs
golangcode snippets by @alexandear in #1494New Contributors
Full Changelog: mgechev/revive@v1.11.0...v1.12.0
v1.11.0Compare Source
What's Changed
Features
Bug fixes
Updates
Docs
New Contributors
Full Changelog: mgechev/revive@v1.10.0...v1.11.0
v1.10.0Compare Source
What's Changed
getfrom getters names by @chavacava in #1373New Contributors
Full Changelog: mgechev/revive@v1.9.0...v1.10.0
v1.9.0Compare Source
Changelog
343da9fRefactor/exported (#1299)379856achore(deps): update dependency go to v1.24.2 (#1285)2442da0chore(deps): update module golang.org/x/sys to v0.32.0 (#1293)a9ee63cchore(deps): update module golang.org/x/text to v0.24.0 (#1296)5f32e8bchore: add lint and all targets to Makefile (#1298)8221f85chore: remove edited trigger (#1309)c882cb8exported: correctly report deprecation-only comments (#1295)02f0a40feature: Improve error-strings rule to detect acronyms and proper nouns (#1287)7f7f31afeature: add support for properties tag in struct-tag rule (#1289)f4e39a7fix false positive in useless-break when a label follows a break (#1286)535ec5afix(deps): update module golang.org/x/tools to v0.32.0 (#1301)57ed899fix: add missing TypeCheck call (#1308)d6ad7cefix: call fmt.Errorf with wrong err (#1290)fbd90befix: race condition of Package fields (#1307)1cb97fdrefactor: fix typos in comments and struct names (#1304)f0eea95struct-tag: change reported messages and refactor implementation (#1292)v1.8.0Compare Source
Changelog
561c949change: replace log with log/slog for logging (#1280)c9c079fchore(deps): update module golang.org/x/sys to v0.31.0 (#1257)dc3de10chore(deps): update module golang.org/x/text to v0.23.0 (#1259)54ea25bdoc: update description of struct-tag rule (#1262)4f34235feature: add suport of mapstructure struct tags in struct-tag rule (#1241)3bbfedbfeature: add suport of validate struct tags in struct-tag rule (#1244)88d5434feature: add support for TOML struct tags in struct-tag rule (#1255)3cf67c5feature: add support of URL struct tags in struct-tag rule (#1239)a4ee892feature: add support of datastore struct tags in struct-tag rume (#1240)88e5689fix(deps): update module github.com/burntsushi/toml to v1.5.0 (#1276)8b973cbfix(deps): update module github.com/spf13/afero to v1.13.0 (#1270)770af80fix(deps): update module github.com/spf13/afero to v1.14.0 (#1271)c940fa6fix(deps): update module golang.org/x/mod to v0.24.0 (#1258)39ae683fix(deps): update module golang.org/x/tools to v0.31.0 (#1261)b77bb1afix: cognitive complexity nesting with if-else chains (#1268)67d0a61fix: error-strings custom funcs overwrites defaults (#1249)77f4474refactor:string-formatimplements ConfigurableRule (#1251)43a44afrefactor: apply suggestions from gopls modernize (#1282)9919e6brefactor: replace IsAtLeastGo1* functions by IsAtLeastGoVersion (#1274)b04d5a7refactor: return error instead of panic (#1252)6d0498crefactor: simplify File.disabledIntervals, add tests (#1216)9f5f957rule: allow lowercased and kebab-cased options (#1272)v1.7.0Compare Source
Changelog
a59a228chore(deps): update golang docker tag to v1.24 (#1232)8ece20bfeature: add support for omitzero in rule struct-tag (#1238)4020f43fix: exclusions are no longer working as before (#1237)v1.6.1Compare Source
Changelog
c237f70Update renovate.json config (#1221)d02fd30chore(deps): update module github.com/mattn/go-colorable to v0.1.14 (#1222)3b54068chore(deps): update module github.com/stretchr/testify to v1.10.0 (#1223)82dd192chore(deps): update module golang.org/x/sys to v0.30.0 (#1224)f66fd1echore(deps): update module golang.org/x/text to v0.22.0 (#1225)a34327echore: check go.mod and run gofmt in CI (#1215)5f01efafeature: add redundant-test-main-exit rule (#1208)fd8d99dfix (1217): getting parameter type names panics in presence of generic types (#1218)ea0222bfix(deps): update module golang.org/x/mod to v0.23.0 (#1219)d04f429fix(deps): update module golang.org/x/sync to v0.11.0 (#1220)3e3e982fix(deps): update module golang.org/x/tools to v0.30.0 (#1227)8c5d8fcfix: flag-parameter rule wrongly detects var definition and points to the function signature (#1213)8cb2599fix: invalid message reported for directive comment (#1209)9a54195fix: panic with getFieldTypeName (#1229)4bd6fbafix: unconditional-recursion false positive when the function is called right after its declaration (#1212) (#1214)e8b55f8prepareSkips: to resolve regexps in excludes (#1060)v1.6.0Compare Source
Changelog
275b018refactor (rule/error-return): replace AST walker by iteration over declarations (#1163)fcfd6adrefactor (rule/flag-param): replace AST walker by iteration over declarations (#1164)a31d5afrefactor (rule/modifies-value-receiver): replace AST walker by iteration over declarations (#1165)dff4dc9Filename-format rule: fix filename extension regex: ".go" to "\.go". (#1132)655e606Update RULES_DESCRIPTIONS.md (#1134)7d97f54[chore] clean up go.sum (#1201)d2778f3adds rule use-errors-new (#1142)cb74ccbchore: Improve sortables detection (#1151)72b91f0chore: Update go.sum (#1153)dde8344chore: add missing tests for var-declarations, fix any/interface{} type issue (#1154)4b2c76echore: cleanup code in rules (#1197)4dd63efchore: fix typo (#1187)45731a3chore: migrate goreleaser config to v2 (#1105)10d9697chore: remove unused #region comments (#1181)d64bddcchore: use US English instead of UK English (#1186)bb9e681cognitive-complexity: handle direct recursion (#1149)3bc2404deep-exit: fix mixed receiver type (lintDeepExit) (#1150)a48710bdeep-exit: ignore testable examples (#1155)7f769f8feat: addredundant-build-tagrule (#1135)7e1d35dfeat: optional extension to early-return rule (#1133) (#1138)57fe5b6fix(deps): update module github.com/spf13/afero to v1.12.0 (#1200)47dc923fix(deps): update module golang.org/x/tools to v0.28.0 (#1172)4ba2c56fix(deps): update module golang.org/x/tools to v0.29.0 (#1198)a106e63fix(rule/modifies-value-receiver): miss modification by ++/-- (#1175)24a9325fix: ast_utils.FuncSignatureIs panics with types names other than ast.Ident (#1174)772285dfix: change URL to the page with rules descriptions (#1129)98a6c97fix: confusing-results doesn't work with pointer types (#1158)7998011fix: return configure rule error (#1193)d9c61c1fix: running revive in CI (#1205)c3b541frefactor (rule/arguments-limits): replace AST walker by iteration over declarations (#1159)4b13782refactor (rule/cyclomatic): replace AST walker by iteration over declarations (#1161)cb89a4crefactor (rule/datarace): replace AST walker by iteration over declarations (#1162)361c744refactor (rule/function-length): replace AST walker by iteration over declarations (#1166)a31d590refactor (rule/function-result-limit): replace AST walker by iteration over declarations (#1167)3e1dbc0refactor (rule/get-return): replace AST walker by iteration over declarations (#1168)5c2aadfrefactor (rule/receiver-naming): replace AST walker by iteration over declarations (#1169)278246drefactor (rule/unexported-return): replace AST walker by iteration over declarations (#1170)8f54012refactor (rule/unused-receiver): replace AST walker by iteration over declarations (#1171)9a5c95frefactor(rule/context-as-argument): replace AST walker by iteration over declarations (#1160)f94c9d7refactor: add all wait group delta at once when possible (#1179)777abc9refactor: avoid duplicated exitFunctions map (#1145)f6a3820refactor: code cleanup (#1177)0afba4frefactor: enforce map and slice style (#1131)93c6bc8refactor: extract getVersion function (#1127)77616f0refactor: fix 'use-any' revive issues (#1204)3421eaerefactor: fix linting issues (#1188)4ca2c11refactor: get rid of mitchellh/go-homedir package (#1195)e23fcdbrefactor: modifies linting machinery to use Failure as a mean to signal erros in rules application (#1178)0e8acearefactor: move functions out from utils.go (#1139)d81fc8frefactor: reduce control nesting in AddConstantRule.configure (#1128)06192a5refactor: remove lint issues (#1176)660968frefactor: remove redundant fmt.Fprintln calls (#1130)303ae4arefactor: remove useless failure slice declaration (#1141)395f790refactor: replace failure Category raw string with constant (#1196)9b15f3frefactor: replace panic with error in rules (#1126)3d1115drefactor: rule configuration and error management (#1185)78e927drefactor: simplify by usingswitchinstead ofif(#1190)cadb2ddrefactor: simplify config.GetFormatter; add tests (#1184)1425e2frefactor: simplify with strings.Prefix, strings.CutPrefix (#1137)7cbd3d1refactor: use slices.SortFunc instead of sort.Slice (#1191)1b4440crefactor: use toml.Unmarshal instead of toml.Decode (#1122)213d960rename unused parameter (#1143)7f7d024unused-param,unused-receiver: fix panic message (#1156)09fb350unused-param,unused-receiver: refactor configure func (#1157)1117372update doc (#1203)v1.5.1Compare Source
Changelog
cc3ad5ffix #1066 by ignoring what seems legit modification of value receivers1070fcd](https://redirect.github.com/mgechev/revive/commit/1070fcdfConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
Need help?
You can ask for more help in the following Slack channel: #proj-renovate-self-hosted. In that channel you can also find ADR and FAQ docs in the Resources section.