mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
chore(lint): fix gofumpt
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
04ef5fa07d
commit
65ee98690c
3 changed files with 5 additions and 9 deletions
|
@ -22,6 +22,7 @@ linters:
|
||||||
- gci
|
- gci
|
||||||
- goconst
|
- goconst
|
||||||
- gofmt
|
- gofmt
|
||||||
|
- gofumpt
|
||||||
- goimports
|
- goimports
|
||||||
- gomoddirectives
|
- gomoddirectives
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
|
@ -64,7 +65,6 @@ linters:
|
||||||
# - gocritic
|
# - gocritic
|
||||||
# - gocyclo
|
# - gocyclo
|
||||||
# - godot
|
# - godot
|
||||||
# - gofumpt
|
|
||||||
# - gosec
|
# - gosec
|
||||||
# - gosimple
|
# - gosimple
|
||||||
# - ifshort
|
# - ifshort
|
||||||
|
|
|
@ -23,16 +23,14 @@ func TestCopyAndInsensitiviseMap(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
given = map[string]interface{}{
|
given = map[string]interface{}{
|
||||||
"Foo": 32,
|
"Foo": 32,
|
||||||
"Bar": map[interface{}]interface {
|
"Bar": map[interface{}]interface{}{
|
||||||
}{
|
|
||||||
"ABc": "A",
|
"ABc": "A",
|
||||||
"cDE": "B",
|
"cDE": "B",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
expected = map[string]interface{}{
|
expected = map[string]interface{}{
|
||||||
"foo": 32,
|
"foo": 32,
|
||||||
"bar": map[string]interface {
|
"bar": map[string]interface{}{
|
||||||
}{
|
|
||||||
"abc": "A",
|
"abc": "A",
|
||||||
"cde": "B",
|
"cde": "B",
|
||||||
},
|
},
|
||||||
|
|
|
@ -1993,8 +1993,7 @@ func TestCaseInsensitiveSet(t *testing.T) {
|
||||||
Reset()
|
Reset()
|
||||||
m1 := map[string]interface{}{
|
m1 := map[string]interface{}{
|
||||||
"Foo": 32,
|
"Foo": 32,
|
||||||
"Bar": map[interface{}]interface {
|
"Bar": map[interface{}]interface{}{
|
||||||
}{
|
|
||||||
"ABc": "A",
|
"ABc": "A",
|
||||||
"cDE": "B",
|
"cDE": "B",
|
||||||
},
|
},
|
||||||
|
@ -2002,8 +2001,7 @@ func TestCaseInsensitiveSet(t *testing.T) {
|
||||||
|
|
||||||
m2 := map[string]interface{}{
|
m2 := map[string]interface{}{
|
||||||
"Foo": 52,
|
"Foo": 52,
|
||||||
"Bar": map[interface{}]interface {
|
"Bar": map[interface{}]interface{}{
|
||||||
}{
|
|
||||||
"bCd": "A",
|
"bCd": "A",
|
||||||
"eFG": "B",
|
"eFG": "B",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue