mirror of
https://github.com/docker/compose.git
synced 2026-06-28 12:13:24 +00:00
Got these when running locally on a more recent version of golangci-lint:
pkg/compose/build_bake.go:187:3: importShadow: shadow of imported from 'github.com/docker/cli/cli/command/image/build' package 'build' (gocritic)
build := *service.Build
^
pkg/compose/build_bake.go:526:19: importShadow: shadow of imported from 'github.com/docker/cli/cli/command/image/build' package 'build' (gocritic)
func toBakeAttest(build types.BuildConfig) []string {
^
pkg/compose/create.go:1453:2: importShadow: shadow of imported from 'github.com/docker/docker/api/types/network' package 'network' (gocritic)
network string,
^
pkg/compose/create.go:1468:2: importShadow: shadow of imported from 'github.com/docker/docker/api/types/network' package 'network' (gocritic)
network string,
^
pkg/compose/monitor.go:42:17: importShadow: shadow of imported from 'github.com/docker/compose/v2/pkg/api' package 'api' (gocritic)
func newMonitor(api client.APIClient, project string) *monitor {
^
cmd/compose/config.go:337:1: File is not properly formatted (gofumpt)
return
^
pkg/compose/convergence.go:608:1: File is not properly formatted (gofumpt)
return
^
pkg/compose/cp.go:335:1: File is not properly formatted (gofumpt)
return
^
pkg/e2e/compose_up_test.go:35:10: go-require: c.RunDockerComposeCmd contains assertions that must only be used in the goroutine running the test function (testifylint)
res := c.RunDockerComposeCmd(t, "-f", "fixtures/dependencies/deps-completed-successfully.yaml", "--project-name", projectName, "up", "--wait", "-d")
^
pkg/e2e/healthcheck_test.go:42:10: go-require: c.RunDockerComposeCmd contains assertions that must only be used in the goroutine running the test function (testifylint)
res := c.RunDockerComposeCmd(t, "-f", "fixtures/start_interval/compose.yaml", "--project-name", projectName, "up", "--wait", "-d", "test")
^
10 issues:
* gocritic: 5
* gofumpt: 3
* testifylint: 2
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
||
|---|---|---|
| .. | ||
| fixtures | ||
| assert.go | ||
| bridge_test.go | ||
| build_test.go | ||
| cancel_test.go | ||
| cascade_test.go | ||
| commit_test.go | ||
| compose_environment_test.go | ||
| compose_exec_test.go | ||
| compose_run_build_once_test.go | ||
| compose_run_test.go | ||
| compose_test.go | ||
| compose_up_test.go | ||
| config_test.go | ||
| configs_test.go | ||
| container_name_test.go | ||
| cp_test.go | ||
| e2e_config_plugin.go | ||
| e2e_config_standalone.go | ||
| env_file_test.go | ||
| exec_test.go | ||
| export_test.go | ||
| framework.go | ||
| healthcheck_test.go | ||
| hooks_test.go | ||
| ipc_test.go | ||
| logs_test.go | ||
| main_test.go | ||
| model_test.go | ||
| networks_test.go | ||
| noDeps_test.go | ||
| orphans_test.go | ||
| pause_test.go | ||
| profiles_test.go | ||
| providers_test.go | ||
| ps_test.go | ||
| publish_test.go | ||
| pull_test.go | ||
| recreate_no_deps_test.go | ||
| restart_test.go | ||
| scale_test.go | ||
| secrets_test.go | ||
| start_stop_test.go | ||
| up_test.go | ||
| volumes_test.go | ||
| wait_test.go | ||
| watch_test.go | ||