fix(deps): update module github.com/mgechev/revive to v1.12.0 #45
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.12.0Release Notes
mgechev/revive (github.com/mgechev/revive)
v1.12.0Compare Source
Changelog
3148906chore(deps): update module golang.org/x/sys to v0.35.0 (#1466)22dfd66chore(deps): update module golang.org/x/text to v0.28.0 (#1467)5a1e5fdchore: Add Copilot instructions (#1437)74e4f63chore: add macOS test runner (#1465)a15fdfdchore: clean up GoReleaser config, remove unnecessary hooks (#1422)809768cchore: enable formatters in golangci-lint config (#1421)c971cb7chore: improve comments for config files (#1424)984b38echore: improve error reporting in test suite (#1431)e5f7980chore: run tests and lint on push to main branch (#1470)7de7cf3docs: add DeepWiki link to README (#1432)154a24fdocs: add info aboutgolangcode snippets (#1494)4a6faccdocs: add missing use-waitgroup-go TOC entry (#1492)40a690dexported: improve detection and error message (#1403)68ac551feature: detect identical-branches in switch statements (#1448)9fd8adbfeature: detect useless options in spanner struct tag (#1483)9fc7dc7feature: identical-branches: check branches of "if ... else if" chains (#1440)2db7034feature: new ruleuse-waitgroup-go(#1484)12d96adfeature: new rule enforce-else (#1436)f353e4bfeature: new rule identical-ifelseif-conditions (#1454)3f4591cfeature: new rule identical-switch-conditions (#1451)15aded9feature: new rule package-directory-mismatch (#1429)fc46c84feature: new rule unsecure-url-scheme (#1478)84b565bfeature: new rule useless-fallthrough (#1462)4720545feature: new rulesidentical-switch-branchesandidentical-ifelseif-branches14c91fefeature: struct-tag warns on (useless) options on ignored fields (#1487)f07a47afeature: support spanner struct tag in struct-tag rule (#1479)6b060cdfix(1438): enforce-switch-style - false positive with pure return based switch (#1446)da50656fix(deps): update module golang.org/x/mod to v0.27.0 (#1468)74bbe3bfix(deps): update module golang.org/x/tools to v0.36.0 (#1469)ccf85a2fix: default formatter generates an extra new line (#1485)b969b8bmodifies-parameter: handle slices.Delete and slices.DeleteFunc (#1427)b34c8e9refactor: fix musttag lint issues (#1464)9d600b6refactor: reduces the number of references to deprecated *ast.Object (#1473)e1d05f7refactor: remove rule enforce-else (#1495)cf49015refactor: replaces calls to astutils.PickNodes with calls to astutils.SeekNode when possible (#1482)v1.11.0Compare Source
Changelog
e585c9bchore(deps): update module golang.org/x/sys to v0.34.0 (#1416)a538e52chore(deps): update module golang.org/x/text to v0.26.0 (#1400)8d3b010chore(deps): update module golang.org/x/text to v0.27.0 (#1418)594e565chore: update golangci-lint; enable a few revive rules (#1420)77d0d4aearly-return: detect short deviated statements (#1396)04983a6exported: ignore exported symbols from the main package (#1398)cfd6943feature: new rule enforce-switch-default (#1390)772659efix(deps): update module golang.org/x/mod to v0.26.0 (#1419)8e0de86fix(deps): update module golang.org/x/sync to v0.16.0 (#1417)426a27afix(deps): update module golang.org/x/tools to v0.34.0 (#1402)9224327fix(deps): update module golang.org/x/tools to v0.35.0 (#1423)24c008dfix: var-naming rule extraBadPackageNames type (#1404)87bd73bunexported-return: fix type aliases support (#1408)e515d11unexported_return: exclude main package and test and tests files (#1399)456cbd0var-naming: handle possible panic (#1405)cc180e2var-naming: option to skip initialism name checks (#1415)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 receivers1070fcdfix(deps): update module golang.org/x/mod to v0.22.0 (#1099)a4d0c43fix(deps): update module golang.org/x/tools to v0.27.0 (#1102)ce69652fix: cli tests on Windows; add tests-on-windows workflow7ee4500fix: fixes #1103 by fixing the processing of max-public-structs arguments (#1114)c0d4d07fix: nil panic on old go.mod (issue #1100)74e2417fix: revive hangs on Windows if go.mod is not found4c958efrefactor: remove redundant deferbe95bfarefactor: rename files to follow Go convention3378f70refactor: replace mutex with sync.Once for rule configuration (#1118)v1.5.0Compare Source
Changelog
e1a4191Appending Indicator to the list of projects using Revive. (#1065)53a111dadds check for receiver names length (#1048)eb18252adds filename-format rule (#1092)e9b7f3abumps go version to 1.21.1 and update dependencies (#1050)7fa1b27chore(deps): update golang docker tag to v1.23 (#1071)78c3a6cchore: enable test shuffle and fix TestXDGConfigDirNoFilead0f03achore: fix typo (#1079)599874cchore: remove unnecessary empty lines (#1080)1a3d95fchore: update actions (#1075)ca2a32bcode cleanup (#1054)0fc9613docs(README): Update the list of contributors (#1076)8ef730cdocs(README): fix TOC, add empty lines (#1074)a213a5fdocuments default exclusion of vendor842b3e2enhance Docker build process (#1070)3bead6ffeat: addfile-length-limitrule (#1072)501cc4afeat: ignore vendor if no exclude set (#1058)4c3641efix #1032 by comparing string representations of types (#1049)7c068a7](https://redirect.github.com/mgechev/revive/coConfiguration
📅 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.