DockerCLI/cli-plugins/manager
Sebastiaan van Stijn d77760fe53
cli-plugins/manager: remove redundant capturing of loop vars (copyloopvar)
go1.22 and up now produce a unique variable in loops, tehrefore no longer
requiring to capture the variable manually;

    cli-plugins/manager/cobra.go:55:4: The copy of the 'for' variable "p" can be deleted (Go 1.22+) (copyloopvar)
                p := p
                ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-11-05 10:14:32 +01:00
..
candidate.go golangci-lint: enable G204, add #nosec comments instead 2024-10-30 15:52:18 +01:00
candidate_test.go linting: address else/if/elseif statements found by gocritic 2023-11-20 16:02:16 +01:00
cobra.go cli-plugins/manager: remove redundant capturing of loop vars (copyloopvar) 2024-11-05 10:14:32 +01:00
error.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
error_test.go linting: fmt.Errorf can be replaced with errors.New (perfsprint) 2024-06-10 21:19:31 +02:00
hooks.go plugins/hooks: Don't show empty hooks 2024-05-20 11:20:39 +02:00
hooks_test.go plugins/hooks: Don't show empty hooks 2024-05-20 11:20:39 +02:00
manager.go golangci-lint: enable G204, add #nosec comments instead 2024-10-30 15:52:18 +01:00
manager_test.go cli-plugins/manager: getPluginDirs: take ConfigFile as argument 2024-01-11 18:15:30 +01:00
manager_unix.go cli-plugins/manager: add GoDoc for getPluginDirs, defaultSystemPluginDirs 2024-06-19 14:02:40 +02:00
manager_windows.go cli-plugins/manager: add GoDoc for getPluginDirs, defaultSystemPluginDirs 2024-06-19 14:02:40 +02:00
metadata.go cli-plugins: Introduce support for hooks 2024-03-22 17:30:18 +00:00
plugin.go golangci-lint: enable G204, add #nosec comments instead 2024-10-30 15:52:18 +01:00
suffix_unix.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00
suffix_windows.go Check for `.exe` case insensitively 2019-01-30 13:45:26 +00:00