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:
Sebastiaan van Stijn
2025-11-28 16:04:15 +01:00
committed by Nicolas De loof
parent 8d9d5259e0
commit dc66e6bad1
108 changed files with 238 additions and 165 deletions

View File

@@ -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 {