DockerCLI/cli/command/formatter
Sebastiaan van Stijn 4e2477f85f
golangci-lint: enable more linters
fix some nolintlint false positives

For some reason, nolintlint doesn't consider these used, but they seem to be
legitimate cases where deprecated fields are used.

    templates/templates.go:27:29: directive `//nolint:staticcheck // strings.Title is deprecated, but we only use it for ASCII, so replacing with golang.org/x/text is out of scope` is unused for linter "staticcheck" (nolintlint)
        "title":    strings.Title, //nolint:staticcheck // strings.Title is deprecated, but we only use it for ASCII, so replacing with golang.org/x/text is out of scope
                                   ^
    cli/command/formatter/image_test.go:75:31: directive `//nolint:staticcheck // ignore SA1019: field is deprecated, but still set on API < v1.44.` is unused for linter "staticcheck" (nolintlint)
                call:     ctx.VirtualSize, //nolint:staticcheck // ignore SA1019: field is deprecated, but still set on API < v1.44.
                                           ^
    cli/command/registry/formatter_search.go💯39: directive `//nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).` is unused for linter "staticcheck" (nolintlint)
        return c.formatBool(c.s.IsAutomated) //nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).
                                             ^
    cli/command/registry/formatter_search_test.go:50:55: directive `//nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).` is unused for linter "staticcheck" (nolintlint)
                    s: registrytypes.SearchResult{IsAutomated: true}, //nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).
                                                                      ^
    cli/command/registry/formatter_search_test.go:53:31: directive `//nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).` is unused for linter "staticcheck" (nolintlint)
                call:     ctx.IsAutomated, //nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).
                                           ^
    cli/command/registry/formatter_search_test.go:59:27: directive `//nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).` is unused for linter "staticcheck" (nolintlint)
                call: ctx.IsAutomated, //nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).
                                       ^
    cli/command/registry/formatter_search_test.go:202:84: directive `//nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).` is unused for linter "staticcheck" (nolintlint)
            {Name: "result2", Description: "Not official", StarCount: 5, IsAutomated: true}, //nolint:staticcheck // ignore SA1019 (IsAutomated is deprecated).
                                                                                             ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-11-20 19:52:46 +01:00
..
tabwriter golangci-lint: enable more linters 2023-11-20 19:52:46 +01:00
testdata formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
buildcache.go golangci-lint: enable perfsprint linter 2023-11-20 16:18:19 +01:00
container.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
container_test.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
context.go cli/command/formatter: remove deprecated KubernetesEndpoint 2023-04-01 20:36:01 +02:00
custom.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
disk_usage.go vendor: github.com/docker/docker cdb3f9fb8dca (v25.0.0-dev) 2023-10-13 22:09:04 +02:00
disk_usage_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
displayutils.go linting: Consider pre-allocating sliceVar (prealloc) 2023-11-20 16:02:16 +01:00
displayutils_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
formatter.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
formatter_test.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
image.go golangci-lint: revive: enable empty-lines 2023-11-20 19:52:45 +01:00
image_test.go golangci-lint: enable more linters 2023-11-20 19:52:46 +01:00
reflect.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
reflect_test.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
volume.go linting: Consider pre-allocating sliceVar (prealloc) 2023-11-20 16:02:16 +01:00
volume_test.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00