Skip to content

fix staticcheck linting issues for golangci-lint v2#49885

Merged
thaJeztah merged 15 commits intomoby:masterfrom
mmorel-35:fix-staticcheck
May 1, 2025
Merged

fix staticcheck linting issues for golangci-lint v2#49885
thaJeztah merged 15 commits intomoby:masterfrom
mmorel-35:fix-staticcheck

Conversation

@mmorel-35
Copy link
Copy Markdown
Contributor

- What I did

Fixes staticcheck linting issues for golangci-lint v2

Related to #49870

- How I did it

Enable a staticcheck rule at a time, fix it and create a dedicated commit.

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

@vvoland vvoland added area/testing kind/refactor PR's that refactor, or clean-up code status/2-code-review labels Apr 28, 2025
@vvoland vvoland added this to the 28.2.0 milestone Apr 28, 2025
@vvoland vvoland requested a review from thaJeztah April 28, 2025 09:40
Copy link
Copy Markdown
Contributor

@vvoland vvoland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I went through these per-commit, and left suggestion on some of them; if possible, could you amend those commits (if changes are made)?

Comment thread api/server/httputils/form.go Outdated
Comment thread daemon/logger/journald/journald.go Outdated
Comment thread daemon/containerd/image_snapshot.go Outdated
Comment thread daemon/logger/gelf/gelf.go
Comment thread daemon/network.go
Comment thread daemon/logger/awslogs/cloudwatchlogs.go Outdated
Comment thread libnetwork/networkdb/cluster.go Outdated
Comment thread internal/usergroup/add_linux.go Outdated
Comment thread daemon/containerd/progress.go Outdated
Comment thread builder/builder-next/adapters/containerimage/pull.go Outdated
mmorel-35 added 13 commits May 1, 2025 14:16
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

I did a quick rebase and squashed the review comments commit with the related commits.

mmorel-35 added 2 commits May 1, 2025 14:30
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member

Ah, good that I did; looks like there was a change that didn't cause a conflict, but made the build fail because of a rename;

#22 27.48 # github.com/docker/docker/libnetwork/drivers/bridge
#22 27.48 libnetwork/drivers/bridge/bridge_linux.go:344:4: undefined: c

@thaJeztah
Copy link
Copy Markdown
Member

Whoop, all green; bringing this one in 🎉

@thaJeztah thaJeztah merged commit d3579b9 into moby:master May 1, 2025
141 checks passed
@mmorel-35 mmorel-35 deleted the fix-staticcheck branch May 1, 2025 16:09
mmorel-35 pushed a commit to mmorel-35/moby that referenced this pull request May 1, 2025
fix staticcheck linting issues for golangci-lint v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants