Skip to content

lint: add modernize#937

Open
Luap99 wants to merge 5 commits into
podman-container-tools:mainfrom
Luap99:lint-modernize
Open

lint: add modernize#937
Luap99 wants to merge 5 commits into
podman-container-tools:mainfrom
Luap99:lint-modernize

Conversation

@Luap99

@Luap99 Luap99 commented Jun 23, 2026

Copy link
Copy Markdown
Member

It performs checks that go fix would apply so it prevents us from adding
back old code patterns.

https://golangci-lint.run/docs/linters/configuration/#modernize

Fix one found issue in common and with that we can drop the extra ci job for go fix.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@github-actions github-actions Bot added storage Related to "storage" package common Related to "common" package image Related to "image" package labels Jun 23, 2026
Luap99 added 4 commits June 23, 2026 12:41
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
It performs checks that go fix would apply so it prevents us from adding
back old code patterns.

https://golangci-lint.run/docs/linters/configuration/#modernize

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
With the modernize lint this is not needed anymore.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package image Related to "image" package storage Related to "storage" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant