DockerCLI/cli/command
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
..
builder cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
checkpoint linting: address else/if/elseif statements found by gocritic 2023-11-20 16:02:16 +01:00
commands remove exec, push, pull, ps, images, info from "legacy" commands 2022-04-08 16:55:39 +02:00
completion vendor: github.com/docker/docker cdb3f9fb8dca (v25.0.0-dev) 2023-10-13 22:09:04 +02:00
config golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
container golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
context golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
formatter golangci-lint: enable more linters 2023-11-20 19:52:46 +01:00
idresolver golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
image golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
inspect golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
manifest golangci-lint: revive: enable import-shadowing 2023-11-20 19:52:41 +01:00
network golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
node golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
plugin golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
registry golangci-lint: enable more linters 2023-11-20 19:52:46 +01:00
secret golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
service golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
stack golangci-lint: enable more linters 2023-11-20 19:52:46 +01:00
swarm golangci-lint: revive: enable empty-lines 2023-11-20 19:52:45 +01:00
system golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
task linting: address slice-append issues found by gocritic 2023-11-20 16:02:17 +01:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
volume golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
cli.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
cli_options.go cli/command: add WithAPIClient 2022-12-05 21:40:39 +01:00
cli_options_test.go golangci-lint: enable thelper linter 2023-11-20 16:02:17 +01:00
cli_test.go cli/command: initialize client and load content lazily 2022-11-28 16:52:02 +01:00
context.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
context_test.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
defaultcontextstore.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
defaultcontextstore_test.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
events_utils.go vendor: github.com/docker/docker 7abd7fa73965 (v25.0.0-dev) 2023-09-05 13:43:35 +02:00
registry.go migrate reference github.com/distribution/reference 2023-09-05 17:53:20 +02:00
registry_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go golangci-lint: revive: enable use-any 2023-11-20 19:52:46 +01:00
utils_test.go format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00