Skip to content

Commit 3031827

Browse files
build(deps): bump github.com/mgechev/revive from 1.7.0 to 1.8.0 (#5663)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent ed7e596 commit 3031827

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

.golangci.next.reference.yml

+30-30
Original file line numberDiff line numberDiff line change
@@ -2172,10 +2172,10 @@ linters:
21722172
disabled: false
21732173
exclude: [""]
21742174
arguments:
2175-
- maxLitCount: "3"
2176-
allowStrs: '""'
2177-
allowInts: "0,1,2"
2178-
allowFloats: "0.0,0.,1.0,1.,2.0,2."
2175+
- max-lit-count: "3"
2176+
allow-strs: '""'
2177+
allow-ints: "0,1,2"
2178+
allow-floats: "0.0,0.,1.0,1.,2.0,2."
21792179
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#argument-limit
21802180
- name: argument-limit
21812181
severity: warning
@@ -2254,7 +2254,7 @@ linters:
22542254
disabled: false
22552255
exclude: [""]
22562256
arguments:
2257-
- allowTypesBefore: "*testing.T,*github.com/user/repo/testing.Harness"
2257+
- allow-types-before: "*testing.T,*github.com/user/repo/testing.Harness"
22582258
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#context-keys-type
22592259
- name: context-keys-type
22602260
severity: warning
@@ -2294,7 +2294,7 @@ linters:
22942294
disabled: false
22952295
exclude: [""]
22962296
arguments:
2297-
- allowedPackages: ["github.com/onsi/ginkgo/v2", "github.com/onsi/gomega"]
2297+
- allowed-packages: ["github.com/onsi/ginkgo/v2", "github.com/onsi/gomega"]
22982298
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#duplicated-imports
22992299
- name: duplicated-imports
23002300
severity: warning
@@ -2306,8 +2306,8 @@ linters:
23062306
disabled: false
23072307
exclude: [""]
23082308
arguments:
2309-
- "preserveScope"
2310-
- "allowJump"
2309+
- "preserve-scope"
2310+
- "allow-jump"
23112311
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#empty-block
23122312
- name: empty-block
23132313
severity: warning
@@ -2333,8 +2333,8 @@ linters:
23332333
arguments:
23342334
- "short"
23352335
# Or this parameter:
2336-
- funcArgStyle: "full"
2337-
funcRetValStyle: "short"
2336+
- func-arg-style: "full"
2337+
func-ret-val-style: "short"
23382338
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#enforce-slice-style
23392339
- name: enforce-slice-style
23402340
severity: warning
@@ -2370,15 +2370,15 @@ linters:
23702370
disabled: false
23712371
exclude: [""]
23722372
arguments:
2373-
- "checkPrivateReceivers"
2374-
- "disableStutteringCheck"
2375-
- "sayRepetitiveInsteadOfStutters"
2376-
- "checkPublicInterface"
2377-
- "disableChecksOnConstants"
2378-
- "disableChecksOnFunctions"
2379-
- "disableChecksOnMethods"
2380-
- "disableChecksOnTypes"
2381-
- "disableChecksOnVariables"
2373+
- "check-private-receivers"
2374+
- "disable-stuttering-check"
2375+
- "say-repetitive-instead-of-stutters"
2376+
- "check-public-interface"
2377+
- "disable-checks-on-constants"
2378+
- "disable-checks-on-functions"
2379+
- "disable-checks-on-methods"
2380+
- "disable-checks-on-types"
2381+
- "disable-checks-on-variables"
23822382
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#file-header
23832383
- name: file-header
23842384
severity: warning
@@ -2393,8 +2393,8 @@ linters:
23932393
exclude: [""]
23942394
arguments:
23952395
- max: 100
2396-
skipComments: true
2397-
skipBlankLines: true
2396+
skip-comments: true
2397+
skip-blank-lines: true
23982398
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#filename-format
23992399
- name: filename-format
24002400
severity: warning
@@ -2442,8 +2442,8 @@ linters:
24422442
arguments:
24432443
- "^[a-z][a-z0-9]{0,}$"
24442444
# Or this parameter:
2445-
- allowRegex: "^[a-z][a-z0-9]{0,}$"
2446-
denyRegex: '^v\d+$'
2445+
- allow-regex: "^[a-z][a-z0-9]{0,}$"
2446+
deny-regex: '^v\d+$'
24472447
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#import-shadowing
24482448
- name: import-shadowing
24492449
severity: warning
@@ -2468,7 +2468,7 @@ linters:
24682468
disabled: false
24692469
exclude: [""]
24702470
arguments:
2471-
- "preserveScope"
2471+
- "preserve-scope"
24722472
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#line-length-limit
24732473
- name: line-length-limit
24742474
severity: warning
@@ -2533,7 +2533,7 @@ linters:
25332533
disabled: false
25342534
exclude: [""]
25352535
arguments:
2536-
- maxLength: 2
2536+
- max-length: 2
25372537
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#redefines-builtin-id
25382538
- name: redefines-builtin-id
25392539
severity: warning
@@ -2583,7 +2583,7 @@ linters:
25832583
disabled: false
25842584
exclude: [""]
25852585
arguments:
2586-
- "preserveScope"
2586+
- "preserve-scope"
25872587
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#time-equal
25882588
- name: time-equal
25892589
severity: warning
@@ -2600,7 +2600,7 @@ linters:
26002600
disabled: false
26012601
exclude: [""]
26022602
arguments:
2603-
- acceptIgnoredAssertionResult: true
2603+
- accept-ignored-assertion-result: true
26042604
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#unconditional-recursion
26052605
- name: unconditional-recursion
26062606
severity: warning
@@ -2640,14 +2640,14 @@ linters:
26402640
disabled: false
26412641
exclude: [""]
26422642
arguments:
2643-
- allowRegex: "^_"
2643+
- allow-regex: "^_"
26442644
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#unused-receiver
26452645
- name: unused-receiver
26462646
severity: warning
26472647
disabled: false
26482648
exclude: [""]
26492649
arguments:
2650-
- allowRegex: "^_"
2650+
- allow-regex: "^_"
26512651
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#use-any
26522652
- name: use-any
26532653
severity: warning
@@ -2676,7 +2676,7 @@ linters:
26762676
arguments:
26772677
- [ "ID" ] # AllowList
26782678
- [ "VM" ] # DenyList
2679-
- - upperCaseConst: true # Extra parameter (upperCaseConst|skipPackageNameChecks)
2679+
- - upper-case-const: true # Extra parameter (upper-case-const|skip-package-name-checks)
26802680
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#waitgroup-by-value
26812681
- name: waitgroup-by-value
26822682
severity: warning

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ require (
7878
github.com/maratori/testpackage v1.1.1
7979
github.com/matoous/godox v1.1.0
8080
github.com/mattn/go-colorable v0.1.14
81-
github.com/mgechev/revive v1.7.0
81+
github.com/mgechev/revive v1.8.0
8282
github.com/mitchellh/go-homedir v1.1.0
8383
github.com/moricho/tparallel v0.3.2
8484
github.com/nakabonne/nestif v0.3.1
@@ -193,7 +193,7 @@ require (
193193
github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect
194194
github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
195195
github.com/rivo/uniseg v0.4.7 // indirect
196-
github.com/spf13/afero v1.12.0 // indirect
196+
github.com/spf13/afero v1.14.0 // indirect
197197
github.com/spf13/cast v1.5.0 // indirect
198198
github.com/spf13/jwalterweatherman v1.1.0 // indirect
199199
github.com/stretchr/objx v0.5.2 // indirect

go.sum

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)