Skip to content

Commit

Permalink
gci: fix options display (#2989)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscr committed Jul 18, 2022
1 parent 4c8bdc7 commit 4e60e8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/golinters/gci.go
Expand Up @@ -141,7 +141,7 @@ func getErrorTextForGci(settings config.GciSettings) string {
text += " with"

if settings.SkipGenerated {
text += " -skip-generated"
text += " --skip-generated"
}

if len(settings.Sections) > 0 {
Expand Down
4 changes: 2 additions & 2 deletions test/testdata/gci.go
Expand Up @@ -5,9 +5,9 @@ package testdata
import (
"fmt"

"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"
"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"

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

func GoimportsLocalTest() {
Expand Down

0 comments on commit 4e60e8a

Please sign in to comment.