diff --git a/pkg/golinters/gofmt_common.go b/pkg/golinters/gofmt_common.go index 6f4e7dd78e0e..dd740d2f5cf1 100644 --- a/pkg/golinters/gofmt_common.go +++ b/pkg/golinters/gofmt_common.go @@ -229,6 +229,9 @@ func extractIssuesFromPatch(patch string, log logutils.Log, lintCtx *linter.Cont var text string if isGoimports { text = "File is not `goimports`-ed" + if lintCtx.Settings().Goimports.LocalPrefixes != "" { + text += " with -local " + lintCtx.Settings().Goimports.LocalPrefixes + } } else { text = "File is not `gofmt`-ed" if lintCtx.Settings().Gofmt.Simplify {