Skip to content

Commit 3caa14d

Browse files
fix: copy golines settings during linter settings load
fixes: golangci#5603
1 parent 301efb3 commit 3caa14d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/config/loader.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ func (l *Loader) handleFormatterOverrides() {
223223
if slices.Contains(l.cfg.Formatters.Enable, "gci") {
224224
l.cfg.Linters.Settings.Gci = l.cfg.Formatters.Settings.Gci
225225
}
226+
227+
if slices.Contains(l.cfg.Formatters.Enable, "golines") {
228+
l.cfg.Linters.Settings.GoLines = l.cfg.Formatters.Settings.GoLines
229+
}
226230
}
227231

228232
// Add formatter exclusions to linters exclusions.

0 commit comments

Comments
 (0)