@@ -3,7 +3,7 @@ package golinters
33import (
44 "sync"
55
6- "github.com/bombsimon/wsl"
6+ "github.com/bombsimon/wsl/v2 "
77 "golang.org/x/tools/go/analysis"
88
99 "github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
@@ -37,13 +37,14 @@ func NewWSL() *goanalysis.Linter {
3737 files = []string {}
3838 linterCfg = lintCtx .Cfg .LintersSettings .WSL
3939 processorCfg = wsl.Configuration {
40- StrictAppend : linterCfg .StrictAppend ,
41- AllowAssignAndCallCuddle : linterCfg .AllowAssignAndCallCuddle ,
42- AllowMultiLineAssignCuddle : linterCfg .AllowMultiLineAssignCuddle ,
43- AllowCaseTrailingWhitespace : linterCfg .AllowCaseTrailingWhitespace ,
44- AllowCuddleDeclaration : linterCfg .AllowCuddleDeclaration ,
45- AllowCuddleWithCalls : []string {"Lock" , "RLock" },
46- AllowCuddleWithRHS : []string {"Unlock" , "RUnlock" },
40+ StrictAppend : linterCfg .StrictAppend ,
41+ AllowAssignAndCallCuddle : linterCfg .AllowAssignAndCallCuddle ,
42+ AllowMultiLineAssignCuddle : linterCfg .AllowMultiLineAssignCuddle ,
43+ AllowCuddleDeclaration : linterCfg .AllowCuddleDeclaration ,
44+ AllowTrailingComment : linterCfg .AllowTrailingComment ,
45+ CaseForceTrailingWhitespaceLimit : linterCfg .CaseForceTrailingWhitespaceLimit ,
46+ AllowCuddleWithCalls : []string {"Lock" , "RLock" },
47+ AllowCuddleWithRHS : []string {"Unlock" , "RUnlock" },
4748 }
4849 )
4950
0 commit comments