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 bb95d09f9a
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>
(cherry picked from commit 4203a97aad)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-08-18 08:44:20 +02:00
..
awslogs daemon/logger/awslogs: suppress false positive on hardcoded creds (gosec) 2022-08-17 19:03:04 +02:00
etwlogs
fluentd fluentd: Turn ForceStopAsyncSend true when async connect is used 2022-01-13 01:06:12 +00:00
gcplogs Update to Go 1.17.0, and gofmt with Go 1.17 2022-04-07 23:27:50 +02:00
gelf Update to Go 1.17.0, and gofmt with Go 1.17 2022-04-07 23:27:50 +02:00
journald daemon/logger/journald: fix linting errors 2022-08-17 18:09:54 +02:00
jsonfilelog jsonfile: more defensive reader implementation 2021-03-19 18:18:55 +01:00
local staticcheck: SA4001: &*x will be simplified to x. It will not copy x 2022-08-17 18:10:19 +02:00
logentries Use a regex to match labels 2019-01-16 22:17:16 +00:00
loggerutils Update to Go 1.17.0, and gofmt with Go 1.17 2022-04-07 23:27:50 +02:00
splunk daemon/splunk: ignore G402: TLS MinVersion too low for now 2022-08-17 18:11:52 +02:00
syslog Fixes #41010 skip empty lines 2020-06-06 12:36:50 +08:00
templates staticcheck: ignore "SA1019: strings.Title is deprecated" 2022-08-18 08:44:20 +02:00
adapter.go Adds PartialLogMetadata to encode protobuf for logger plugins 2019-04-09 16:14:33 +05:00
adapter_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
copier.go Handle long log messages correctly on SizedLogger 2021-02-17 21:19:02 +01:00
copier_test.go Handle long log messages correctly on SizedLogger 2021-02-17 21:19:02 +01:00
factory.go Improve error feedback when plugin does not implement desired interface 2020-04-21 18:06:24 -03:00
log_cache_opts.go Support configuration of log cacher. 2020-02-19 17:02:34 -05:00
logger.go Cleanup duplication in daemon files 2018-11-13 10:42:57 +08:00
logger_test.go
loginfo.go Check the length of the correct variable #42039 2021-02-18 22:23:34 +01:00
metrics.go goimports: fix imports 2019-09-18 12:56:54 +02:00
plugin.go Entropy cannot be saved 2019-06-07 11:54:45 +01:00
plugin_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2022-04-07 23:27:50 +02:00
plugin_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2022-04-07 23:27:50 +02:00
proxy.go
ring.go Handle long log messages correctly on SizedLogger 2021-02-17 21:19:02 +01:00
ring_test.go