moby--moby/pkg/plugins
Sebastiaan van Stijn 4203a97aad
staticcheck: ignore "SA1019: strings.Title is deprecated"
This function is marked deprecated in Go 1.18; however, the suggested replacement
brings in a large amount of new code, and most strings we generate will be ASCII,
so this would only be in case it's used for some user-provided string. We also
don't have a language to use, so would be using the "default".

Adding a `//nolint` comment to suppress the linting failure instead.

    daemon/logger/templates/templates.go:23:14: SA1019: strings.Title is deprecated: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (staticcheck)
        "title":    strings.Title,
                    ^
    pkg/plugins/pluginrpc-gen/template.go:67:9: SA1019: strings.Title is deprecated: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (staticcheck)
        return strings.Title(s)
               ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-03-16 12:11:54 +01:00
..
pluginrpc-gen staticcheck: ignore "SA1019: strings.Title is deprecated" 2022-03-16 12:11:54 +01:00
transport
client.go
client_test.go
discovery.go pkg/plugins: fix compatibility with go1.16 2021-08-31 15:42:54 +02:00
discovery_test.go
discovery_unix.go
discovery_unix_test.go
discovery_windows.go
errors.go
plugin_test.go
plugins.go
plugins_unix.go
plugins_windows.go
utils.go pkg/plugins: fix compatibility with go1.16 2021-08-31 15:42:54 +02:00
utils_go1.16.go pkg/plugins: fix compatibility with go1.16 2021-08-31 15:42:54 +02:00