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

+3-1
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

+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)