1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger
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
..
awslogs daemon/logger/awslogs: suppress false positive on hardcoded creds (gosec) 2022-02-08 09:43:22 +01:00
etwlogs
fluentd The flag ForceStopAsyncSend was added to fluent logger lib in v1.9.0 2021-12-24 22:04:08 +01:00
gcplogs Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
gelf Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
journald Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
jsonfilelog refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
local test: use os.CreateTemp instead of ioutil.TempFile 2021-12-23 09:09:47 -08:00
logentries
loggerutils daemon/logger: fix data race in LogFile 2022-03-03 14:56:25 -05:00
splunk refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
syslog
templates staticcheck: ignore "SA1019: strings.Title is deprecated" 2022-03-16 12:11:54 +01:00
adapter.go
adapter_test.go
copier.go
copier_test.go
factory.go
log_cache_opts.go
logger.go daemon/logger: fix data race in LogFile 2022-03-03 14:56:25 -05:00
logger_error.go
logger_test.go
loginfo.go
metrics.go
plugin.go
plugin_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
plugin_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
proxy.go
ring.go Merge pull request #42291 from angelcar/awslogs-dont-log-messge-discarded-errors 2021-05-27 19:33:44 -07:00
ring_test.go