File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -1057,19 +1057,19 @@ linters-settings:
1057
1057
varnamelen :
1058
1058
# The longest distance, in source lines, that is being considered a "small scope." (defaults to 5)
1059
1059
# Variables used in at most this many lines will be ignored.
1060
- max-distance : 5
1060
+ max-distance : 6
1061
1061
# The minimum length of a variable's name that is considered "long." (defaults to 3)
1062
1062
# Variable names that are at least this long will be ignored.
1063
- min-name-length : 3
1063
+ min-name-length : 2
1064
1064
# Check method receiver names. (defaults to false)
1065
1065
check-receiver : false
1066
1066
# Check named return values. (defaults to false)
1067
1067
check-return : false
1068
- # Ignore "ok" variables that hold the bool return value of a type assertion. (defaults to false )
1068
+ # Ignore "ok" variables that hold the bool return value of a type assertion. (defaults to true )
1069
1069
ignore-type-assert-ok : false
1070
- # Ignore "ok" variables that hold the bool return value of a map index. (defaults to false )
1070
+ # Ignore "ok" variables that hold the bool return value of a map index. (defaults to true )
1071
1071
ignore-map-index-ok : false
1072
- # Ignore "ok" variables that hold the bool return value of a channel receive. (defaults to false )
1072
+ # Ignore "ok" variables that hold the bool return value of a channel receive. (defaults to true )
1073
1073
ignore-chan-recv-ok : false
1074
1074
# Optional list of variable names that should be ignored completely. (defaults to empty list)
1075
1075
ignore-names :
Original file line number Diff line number Diff line change @@ -81,6 +81,13 @@ var defaultLintersSettings = LintersSettings{
81
81
Unparam : UnparamSettings {
82
82
Algo : "cha" ,
83
83
},
84
+ Varnamelen : VarnamelenSettings {
85
+ MaxDistance : 5 ,
86
+ MinNameLength : 3 ,
87
+ IgnoreTypeAssertOk : true ,
88
+ IgnoreMapIndexOk : true ,
89
+ IgnoreChanRecvOk : true ,
90
+ },
84
91
WSL : WSLSettings {
85
92
StrictAppend : true ,
86
93
AllowAssignAndCallCuddle : true ,
You can’t perform that action at this time.
0 commit comments