Skip to content

golangci-lint: enable more linters, and some minor linting fixes#6086

Merged
thaJeztah merged 10 commits intodocker:masterfrom
thaJeztah:golangci_tweaks
May 22, 2025
Merged

golangci-lint: enable more linters, and some minor linting fixes#6086
thaJeztah merged 10 commits intodocker:masterfrom
thaJeztah:golangci_tweaks

Conversation

@thaJeztah
Copy link
Member

- Human readable description for the release notes

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

thaJeztah added 2 commits May 19, 2025 15:33
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Format comments to be the same as in moby/moby for easier comparing.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter
Copy link

codecov-commenter commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.02%. Comparing base (0ffb724) to head (9d027df).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6086      +/-   ##
==========================================
- Coverage   55.02%   55.02%   -0.01%     
==========================================
  Files         361      361              
  Lines       30131    30131              
==========================================
- Hits        16581    16579       -2     
- Misses      12595    12597       +2     
  Partials      955      955              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

thaJeztah added 7 commits May 19, 2025 20:07
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    cli/command/container/formatter_stats_test.go:339:11: append to slice `stats` with non-zero initialized length (makezero)
            stats = append(stats, entry)
                    ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Enables the asasalint, exptostd, fatcontext, gocheckcompilerdirectives,
iface, makezero, and spancheck linters.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah requested review from Benehiko and vvoland May 21, 2025 22:43
@thaJeztah thaJeztah merged commit 4be9afb into docker:master May 22, 2025
87 checks passed
@thaJeztah thaJeztah deleted the golangci_tweaks branch May 22, 2025 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants