Skip to content

Commit 4556d59

Browse files
butuzovldez
authored andcommitted
dev: revert Ignore...Ok settings back to false
1 parent 242ebf1 commit 4556d59

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.golangci.example.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,11 @@ linters-settings:
10651065
check-receiver: false
10661066
# Check named return values. (defaults to false)
10671067
check-return: false
1068-
# Ignore "ok" variables that hold the bool return value of a type assertion. (defaults to true)
1068+
# Ignore "ok" variables that hold the bool return value of a type assertion. (defaults to false)
10691069
ignore-type-assert-ok: false
1070-
# Ignore "ok" variables that hold the bool return value of a map index. (defaults to true)
1070+
# Ignore "ok" variables that hold the bool return value of a map index. (defaults to false)
10711071
ignore-map-index-ok: false
1072-
# Ignore "ok" variables that hold the bool return value of a channel receive. (defaults to true)
1072+
# Ignore "ok" variables that hold the bool return value of a channel receive. (defaults to false)
10731073
ignore-chan-recv-ok: false
10741074
# Optional list of variable names that should be ignored completely. (defaults to empty list)
10751075
ignore-names:

pkg/config/linters_settings.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,8 @@ var defaultLintersSettings = LintersSettings{
8282
Algo: "cha",
8383
},
8484
Varnamelen: VarnamelenSettings{
85-
MaxDistance: 5,
86-
MinNameLength: 3,
87-
IgnoreTypeAssertOk: true,
88-
IgnoreMapIndexOk: true,
89-
IgnoreChanRecvOk: true,
85+
MaxDistance: 5,
86+
MinNameLength: 3,
9087
},
9188
WSL: WSLSettings{
9289
StrictAppend: true,

0 commit comments

Comments
 (0)