mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
golangci-lint: use gci formatter instead of goimports
Most files already grouped imports into "stdlib -> other -> local",
but some files didn't. The gci formatter is similar to goimports, but
has better options to make sure imports are grouped in the expected
order (and to make sure no additional groups are present).
This formatter has a 'fix' function, so code can be re-formatted auto-
matically;
golangci-lint run -v --fix
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Nicolas De loof
parent
8d9d5259e0
commit
dc66e6bad1
@@ -23,8 +23,9 @@ import (
|
||||
|
||||
clidocstool "github.com/docker/cli-docs-tool"
|
||||
"github.com/docker/cli/cli/command"
|
||||
"github.com/docker/compose/v5/cmd/compose"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/docker/compose/v5/cmd/compose"
|
||||
)
|
||||
|
||||
func generateDocs(opts *options) error {
|
||||
|
||||
Reference in New Issue
Block a user