gci: fix options display (#2989)
This commit is contained in:
parent
4c8bdc70cc
commit
4e60e8a894
@ -141,7 +141,7 @@ func getErrorTextForGci(settings config.GciSettings) string {
|
|||||||
text += " with"
|
text += " with"
|
||||||
|
|
||||||
if settings.SkipGenerated {
|
if settings.SkipGenerated {
|
||||||
text += " -skip-generated"
|
text += " --skip-generated"
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(settings.Sections) > 0 {
|
if len(settings.Sections) > 0 {
|
||||||
|
4
test/testdata/gci.go
vendored
4
test/testdata/gci.go
vendored
@ -5,9 +5,9 @@ package testdata
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"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() {
|
func GoimportsLocalTest() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user