Skip to content

Commit 552157a

Browse files
ldezSeigeC
authored andcommitted
revive: fix configuration parsing (golangci#3284)
1 parent dfffeac commit 552157a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.golangci.reference.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,8 @@ linters-settings:
13971397
- name: context-as-argument
13981398
severity: warning
13991399
disabled: false
1400+
arguments:
1401+
- allowTypesBefore: "*testing.T,*github.com/user/repo/testing.Harness"
14001402
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#context-keys-type
14011403
- name: context-keys-type
14021404
severity: warning
@@ -1931,7 +1933,7 @@ linters-settings:
19311933
# Allow multiple var/declaration statements to be cuddled.
19321934
allow-cuddle-declarations: false
19331935

1934-
# Aa list of call idents that everything can be cuddled with.
1936+
# A list of call idents that everything can be cuddled with.
19351937
# Defaults to calls looking like locks.
19361938
allow-cuddle-with-calls: [ "Lock", "RLock" ]
19371939

go.mod

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)