Skip to content

Commit 0a96e8b

Browse files
oscrSeigeC
authored andcommitted
gci: fix options display (golangci#2989)
1 parent 3184cb3 commit 0a96e8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/golinters/gci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func getErrorTextForGci(settings config.GciSettings) string {
141141
text += " with"
142142

143143
if settings.SkipGenerated {
144-
text += " -skip-generated"
144+
text += " --skip-generated"
145145
}
146146

147147
if len(settings.Sections) > 0 {

test/testdata/gci.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ package testdata
55
import (
66
"fmt"
77

8-
"github.com/golangci/golangci-lint/pkg/config" // ERROR "File is not \\`gci\\`-ed with -skip-generated -s standard,prefix\\(github.com/golangci/golangci-lint\\),default"
8+
"github.com/golangci/golangci-lint/pkg/config" // ERROR "File is not \\`gci\\`-ed with --skip-generated -s standard,prefix\\(github.com/golangci/golangci-lint\\),default"
99

10-
"github.com/pkg/errors" // ERROR "File is not \\`gci\\`-ed with -skip-generated -s standard,prefix\\(github.com/golangci/golangci-lint\\),default"
10+
"github.com/pkg/errors" // ERROR "File is not \\`gci\\`-ed with --skip-generated -s standard,prefix\\(github.com/golangci/golangci-lint\\),default"
1111
)
1212

1313
func GoimportsLocalTest() {

0 commit comments

Comments
 (0)