@@ -2,29 +2,30 @@ package ginkgolinter
22
33import  (
44	"github.com/nunnatsa/ginkgolinter" 
5- 	"github.com/nunnatsa/ginkgolinter/types " 
5+ 	glconfig  "github.com/nunnatsa/ginkgolinter/config " 
66
77	"github.com/golangci/golangci-lint/v2/pkg/config" 
88	"github.com/golangci/golangci-lint/v2/pkg/goanalysis" 
99)
1010
1111func  New (settings  * config.GinkgoLinterSettings ) * goanalysis.Linter  {
12- 	cfg  :=  & types .Config {}
12+ 	cfg  :=  & glconfig .Config {}
1313
1414	if  settings  !=  nil  {
15- 		cfg  =  & types.Config {
16- 			SuppressLen :            settings .SuppressLenAssertion ,
17- 			SuppressNil :            settings .SuppressNilAssertion ,
18- 			SuppressErr :            settings .SuppressErrAssertion ,
19- 			SuppressCompare :        settings .SuppressCompareAssertion ,
20- 			SuppressAsync :          settings .SuppressAsyncAssertion ,
21- 			ForbidFocus :            settings .ForbidFocusContainer ,
22- 			SuppressTypeCompare :    settings .SuppressTypeCompareWarning ,
23- 			AllowHaveLen0 :          settings .AllowHaveLenZero ,
24- 			ForceExpectTo :          settings .ForceExpectTo ,
25- 			ValidateAsyncIntervals : settings .ValidateAsyncIntervals ,
26- 			ForbidSpecPollution :    settings .ForbidSpecPollution ,
27- 			ForceSucceedForFuncs :   settings .ForceSucceedForFuncs ,
15+ 		cfg  =  & glconfig.Config {
16+ 			SuppressLen :               settings .SuppressLenAssertion ,
17+ 			SuppressNil :               settings .SuppressNilAssertion ,
18+ 			SuppressErr :               settings .SuppressErrAssertion ,
19+ 			SuppressCompare :           settings .SuppressCompareAssertion ,
20+ 			SuppressAsync :             settings .SuppressAsyncAssertion ,
21+ 			ForbidFocus :               settings .ForbidFocusContainer ,
22+ 			SuppressTypeCompare :       settings .SuppressTypeCompareWarning ,
23+ 			AllowHaveLen0 :             settings .AllowHaveLenZero ,
24+ 			ForceExpectTo :             settings .ForceExpectTo ,
25+ 			ValidateAsyncIntervals :    settings .ValidateAsyncIntervals ,
26+ 			ForbidSpecPollution :       settings .ForbidSpecPollution ,
27+ 			ForceSucceedForFuncs :      settings .ForceSucceedForFuncs ,
28+ 			ForceAssertionDescription : settings .ForceAssertionDescription ,
2829		}
2930	}
3031
0 commit comments