@@ -255,11 +255,12 @@ type GocognitSettings struct {
255255}
256256
257257type WSLSettings struct {
258- StrictAppend bool `mapstructure:"strict-append"`
259- AllowAssignAndCallCuddle bool `mapstructure:"allow-assign-and-call"`
260- AllowMultiLineAssignCuddle bool `mapstructure:"allow-multiline-assign"`
261- AllowCaseTrailingWhitespace bool `mapstructure:"allow-case-trailing-whitespace"`
262- AllowCuddleDeclaration bool `mapstructure:"allow-cuddle-declarations"`
258+ StrictAppend bool `mapstructure:"strict-append"`
259+ AllowAssignAndCallCuddle bool `mapstructure:"allow-assign-and-call"`
260+ AllowMultiLineAssignCuddle bool `mapstructure:"allow-multiline-assign"`
261+ AllowCuddleDeclaration bool `mapstructure:"allow-cuddle-declarations"`
262+ AllowTrailingComment bool `mapstructure:"allow-trailing-comment"`
263+ CaseForceTrailingWhitespaceLimit int `mapstructure:"force-case-trailing-whitespace:"`
263264}
264265
265266var defaultLintersSettings = LintersSettings {
@@ -291,11 +292,12 @@ var defaultLintersSettings = LintersSettings{
291292 MinComplexity : 30 ,
292293 },
293294 WSL : WSLSettings {
294- StrictAppend : true ,
295- AllowAssignAndCallCuddle : true ,
296- AllowMultiLineAssignCuddle : true ,
297- AllowCaseTrailingWhitespace : true ,
298- AllowCuddleDeclaration : false ,
295+ StrictAppend : true ,
296+ AllowAssignAndCallCuddle : true ,
297+ AllowMultiLineAssignCuddle : true ,
298+ AllowCuddleDeclaration : false ,
299+ AllowTrailingComment : false ,
300+ CaseForceTrailingWhitespaceLimit : 0 ,
299301 },
300302}
301303
0 commit comments