Skip to content

Commit

Permalink
dev: revert Ignore...Ok settings back to false
Browse files Browse the repository at this point in the history
  • Loading branch information
butuzov committed Jan 19, 2022
1 parent 242ebf1 commit b28f225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .golangci.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1065,11 +1065,11 @@ linters-settings:
check-receiver: false
# Check named return values. (defaults to false)
check-return: false
# Ignore "ok" variables that hold the bool return value of a type assertion. (defaults to true)
# Ignore "ok" variables that hold the bool return value of a type assertion. (defaults to false)
ignore-type-assert-ok: false
# Ignore "ok" variables that hold the bool return value of a map index. (defaults to true)
# Ignore "ok" variables that hold the bool return value of a map index. (defaults to false)
ignore-map-index-ok: false
# Ignore "ok" variables that hold the bool return value of a channel receive. (defaults to true)
# Ignore "ok" variables that hold the bool return value of a channel receive. (defaults to false)
ignore-chan-recv-ok: false
# Optional list of variable names that should be ignored completely. (defaults to empty list)
ignore-names:
Expand Down
7 changes: 2 additions & 5 deletions pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,8 @@ var defaultLintersSettings = LintersSettings{
Algo: "cha",
},
Varnamelen: VarnamelenSettings{
MaxDistance: 5,
MinNameLength: 3,
IgnoreTypeAssertOk: true,
IgnoreMapIndexOk: true,
IgnoreChanRecvOk: true,
MaxDistance: 5,
MinNameLength: 3,
},
WSL: WSLSettings{
StrictAppend: true,
Expand Down

0 comments on commit b28f225

Please sign in to comment.