Fix linter

Updates golangci-lint and updates to the correct config format.

Also renames some unused parameters to `_` to appese `revive`.
This commit is contained in:
Ian Fijolek
2023-12-13 15:13:40 -08:00
parent bee94e4421
commit 5983df6491
8 changed files with 19 additions and 19 deletions

View File

@@ -31,7 +31,7 @@ type ImageListCmd struct {
Raw bool `kong:"name='raw',default='false',help='JSON output.'"`
}
func (s *ImageListCmd) Run(ctx *Context) error {
func (s *ImageListCmd) Run(_ *Context) error {
defer s.conn.Close()
il, err := s.imageSvc.ImageList(context.Background(), &pb.ImageListRequest{})
@@ -73,7 +73,7 @@ type ImageInspectCmd struct {
Raw bool `kong:"name='raw',default='false',help='JSON output.'"`
}
func (s *ImageInspectCmd) Run(ctx *Context) error {
func (s *ImageInspectCmd) Run(_ *Context) error {
defer s.conn.Close()
ii, err := s.imageSvc.ImageInspect(context.Background(), &pb.ImageInspectRequest{
@@ -111,7 +111,7 @@ type ImageRemoveCmd struct {
Image string `kong:"name='image',required,help='Image to remove.'"`
}
func (s *ImageRemoveCmd) Run(ctx *Context) error {
func (s *ImageRemoveCmd) Run(_ *Context) error {
defer s.conn.Close()
removed, err := s.imageSvc.ImageRemove(context.Background(), &pb.ImageRemoveRequest{
@@ -147,7 +147,7 @@ const (
pruneAllWarning = `This will remove all manifests from the database. Are you sure you want to continue?`
)
func (s *ImagePruneCmd) Run(ctx *Context) error {
func (s *ImagePruneCmd) Run(_ *Context) error {
defer s.conn.Close()
if !s.Force {