Skip to content

Commit 283b66d

Browse files
committed
fix: wrong loadMode
1 parent 2a28327 commit 283b66d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/golinters/cyclop/cyclop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ func New(settings *config.Cyclop) *goanalysis.Linter {
3333
a.Doc,
3434
[]*analysis.Analyzer{a},
3535
cfg,
36-
).WithLoadMode(goanalysis.LoadModeTypesInfo)
36+
).WithLoadMode(goanalysis.LoadModeSyntax)
3737
}

pkg/lint/lintersdb/builder_linter.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
183183

184184
linter.NewConfig(cyclop.New(&cfg.LintersSettings.Cyclop)).
185185
WithSince("v1.37.0").
186-
WithLoadForGoAnalysis().
187186
WithPresets(linter.PresetComplexity).
188187
WithURL("https://github.com/bkielbasa/cyclop"),
189188

0 commit comments

Comments
 (0)