Skip to content

Commit 5ef7b41

Browse files
authored
revive: fix configuration parsing (#3284)
1 parent d03294f commit 5ef7b41

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.golangci.reference.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,8 @@ linters-settings:
13721372
- name: context-as-argument
13731373
severity: warning
13741374
disabled: false
1375+
arguments:
1376+
- allowTypesBefore: "*testing.T,*github.com/user/repo/testing.Harness"
13751377
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#context-keys-type
13761378
- name: context-keys-type
13771379
severity: warning
@@ -1906,7 +1908,7 @@ linters-settings:
19061908
# Allow multiple var/declaration statements to be cuddled.
19071909
allow-cuddle-declarations: false
19081910

1909-
# Aa list of call idents that everything can be cuddled with.
1911+
# A list of call idents that everything can be cuddled with.
19101912
# Defaults to calls looking like locks.
19111913
allow-cuddle-with-calls: [ "Lock", "RLock" ]
19121914

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ require (
9090
github.com/sourcegraph/go-diff v0.6.1
9191
github.com/spf13/cobra v1.5.0
9292
github.com/spf13/pflag v1.0.5
93-
github.com/spf13/viper v1.13.0
93+
github.com/spf13/viper v1.12.0
9494
github.com/ssgreg/nlreturn/v2 v2.2.1
9595
github.com/stbenjam/no-sprintf-host-port v0.1.1
9696
github.com/stretchr/testify v1.8.0

go.sum

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

0 commit comments

Comments
 (0)