mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
bump golangci-lint to v1.49.0
Motivated to have a working `make lint` on Fedora 37 (beta). Most changes come from the new `gofmt` standards. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -13,7 +13,7 @@ import (
|
||||
|
||||
type ContainerCopyFunc func() error
|
||||
|
||||
type ContainerEngine interface {
|
||||
type ContainerEngine interface { //nolint:interfacebloat
|
||||
AutoUpdate(ctx context.Context, options AutoUpdateOptions) ([]*AutoUpdateReport, []error)
|
||||
Config(ctx context.Context) (*config.Config, error)
|
||||
ContainerAttach(ctx context.Context, nameOrID string, options AttachOptions) error
|
||||
|
||||
@ -8,7 +8,7 @@ import (
|
||||
"github.com/containers/podman/v4/pkg/domain/entities/reports"
|
||||
)
|
||||
|
||||
type ImageEngine interface {
|
||||
type ImageEngine interface { //nolint:interfacebloat
|
||||
Build(ctx context.Context, containerFiles []string, opts BuildOptions) (*BuildReport, error)
|
||||
Config(ctx context.Context) (*config.Config, error)
|
||||
Exists(ctx context.Context, nameOrID string) (*BoolReport, error)
|
||||
|
||||
@ -13,7 +13,8 @@ import (
|
||||
)
|
||||
|
||||
// FIXME: the `ignore` parameter is very likely wrong here as it should rather
|
||||
// be used on *errors* from operations such as remove.
|
||||
//
|
||||
// be used on *errors* from operations such as remove.
|
||||
func getContainersByContext(contextWithConnection context.Context, all, ignore bool, namesOrIDs []string) ([]entities.ListContainer, error) { //nolint:unparam
|
||||
ctrs, _, err := getContainersAndInputByContext(contextWithConnection, all, ignore, namesOrIDs, nil)
|
||||
return ctrs, err
|
||||
|
||||
Reference in New Issue
Block a user