varnamelen: explicit default values (#2496)
This commit is contained in:
parent
e3d0247ee2
commit
dff995c6b2
@ -1057,10 +1057,10 @@ linters-settings:
|
|||||||
varnamelen:
|
varnamelen:
|
||||||
# The longest distance, in source lines, that is being considered a "small scope." (defaults to 5)
|
# The longest distance, in source lines, that is being considered a "small scope." (defaults to 5)
|
||||||
# Variables used in at most this many lines will be ignored.
|
# Variables used in at most this many lines will be ignored.
|
||||||
max-distance: 5
|
max-distance: 6
|
||||||
# The minimum length of a variable's name that is considered "long." (defaults to 3)
|
# The minimum length of a variable's name that is considered "long." (defaults to 3)
|
||||||
# Variable names that are at least this long will be ignored.
|
# Variable names that are at least this long will be ignored.
|
||||||
min-name-length: 3
|
min-name-length: 2
|
||||||
# Check method receiver names. (defaults to false)
|
# Check method receiver names. (defaults to false)
|
||||||
check-receiver: false
|
check-receiver: false
|
||||||
# Check named return values. (defaults to false)
|
# Check named return values. (defaults to false)
|
||||||
|
@ -81,6 +81,10 @@ var defaultLintersSettings = LintersSettings{
|
|||||||
Unparam: UnparamSettings{
|
Unparam: UnparamSettings{
|
||||||
Algo: "cha",
|
Algo: "cha",
|
||||||
},
|
},
|
||||||
|
Varnamelen: VarnamelenSettings{
|
||||||
|
MaxDistance: 5,
|
||||||
|
MinNameLength: 3,
|
||||||
|
},
|
||||||
WSL: WSLSettings{
|
WSL: WSLSettings{
|
||||||
StrictAppend: true,
|
StrictAppend: true,
|
||||||
AllowAssignAndCallCuddle: true,
|
AllowAssignAndCallCuddle: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user