DockerCLI/cli/command/formatter
Sebastiaan van Stijn 3df40364f6
update go:build tags to use go1.22
commit 4a7b04d412 configured golangci-lint
to use go1.23 semantics, which enabled the copyloopvar linter.

go1.22 now creates a copy of variables when assigned in a loop; make sure we
don't have files that may downgrade semantics to go1.21 in case that also means
disabling that feature; https://go.dev/ref/spec#Go_1.22

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 7c80e4f938)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-11-15 11:10:35 +01:00
..
tabwriter Correct typos in the cli/ folder 2024-06-04 03:08:56 +00: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 update go:build tags to use go1.22 2024-11-15 11:10:35 +01:00
container_test.go update go:build tags to use go1.22 2024-11-15 11:10:35 +01:00
context.go context list: temporarily add ContextType to JSON output 2024-05-31 13:08:31 +02:00
custom.go update go:build tags to use go1.22 2024-11-15 11:10:35 +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 update go:build tags to use go1.22 2024-11-15 11:10:35 +01:00
formatter_test.go update go:build tags to use go1.22 2024-11-15 11:10:35 +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 update go:build tags to use go1.22 2024-11-15 11:10:35 +01:00
reflect_test.go update go:build tags to use go1.22 2024-11-15 11:10:35 +01:00
volume.go linting: Consider pre-allocating sliceVar (prealloc) 2023-11-20 16:02:16 +01:00
volume_test.go update go:build tags to use go1.22 2024-11-15 11:10:35 +01:00