Skip to content

Commit

Permalink
revive: fix configuration parsing (golangci#3284)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and SeigeC committed Apr 4, 2023
1 parent dfffeac commit 552157a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .golangci.reference.yml
Expand Up @@ -1397,6 +1397,8 @@ linters-settings:
- name: context-as-argument
severity: warning
disabled: false
arguments:
- allowTypesBefore: "*testing.T,*github.com/user/repo/testing.Harness"
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#context-keys-type
- name: context-keys-type
severity: warning
Expand Down Expand Up @@ -1931,7 +1933,7 @@ linters-settings:
# Allow multiple var/declaration statements to be cuddled.
allow-cuddle-declarations: false

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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -90,7 +90,7 @@ require (
github.com/sourcegraph/go-diff v0.6.1
github.com/spf13/cobra v1.5.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.13.0
github.com/spf13/viper v1.12.0
github.com/ssgreg/nlreturn/v2 v2.2.1
github.com/stbenjam/no-sprintf-host-port v0.1.1
github.com/stretchr/testify v1.8.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 552157a

Please sign in to comment.