DockerCLI/cli/command/swarm
Sebastiaan van Stijn b58731fa46
linting: ST1005: error strings should not be capitalized (stylecheck)
While fixing, also updated errors without placeholders to `errors.New()`, and
updated some code to use pkg/errors if it was already in use in the file.

    cli/command/config/inspect.go:59:10: ST1005: error strings should not be capitalized (stylecheck)
            return fmt.Errorf("Cannot supply extra formatting options to the pretty template")
                   ^
    cli/command/node/inspect.go:61:10: ST1005: error strings should not be capitalized (stylecheck)
            return fmt.Errorf("Cannot supply extra formatting options to the pretty template")
                   ^
    cli/command/secret/inspect.go:57:10: ST1005: error strings should not be capitalized (stylecheck)
            return fmt.Errorf("Cannot supply extra formatting options to the pretty template")
                   ^
    cli/command/trust/common.go:77:74: ST1005: error strings should not be capitalized (stylecheck)
                return []trustTagRow{}, []client.RoleWithSignatures{}, []data.Role{}, fmt.Errorf("No signatures or cannot access %s", remote)
                                                                                      ^
    cli/command/trust/common.go:85:73: ST1005: error strings should not be capitalized (stylecheck)
            return []trustTagRow{}, []client.RoleWithSignatures{}, []data.Role{}, fmt.Errorf("No signers for %s", remote)
                                                                                  ^
    cli/command/trust/sign.go:137:10: ST1005: error strings should not be capitalized (stylecheck)
            return fmt.Errorf("No tag specified for %s", imgRefAndAuth.Name())
                   ^
    cli/command/trust/sign.go:151:19: ST1005: error strings should not be capitalized (stylecheck)
            return *target, fmt.Errorf("No tag specified")
                            ^
    cli/command/trust/signer_add.go:77:10: ST1005: error strings should not be capitalized (stylecheck)
            return fmt.Errorf("Failed to add signer to: %s", strings.Join(errRepos, ", "))
                   ^
    cli/command/trust/signer_remove.go:52:10: ST1005: error strings should not be capitalized (stylecheck)
            return fmt.Errorf("Error removing signer from: %s", strings.Join(errRepos, ", "))
                   ^
    cli/command/trust/signer_remove.go:67:17: ST1005: error strings should not be capitalized (stylecheck)
            return false, fmt.Errorf("All signed tags are currently revoked, use docker trust sign to fix")
                          ^
    cli/command/trust/signer_remove.go:108:17: ST1005: error strings should not be capitalized (stylecheck)
            return false, fmt.Errorf("No signer %s for repository %s", signerName, repoName)
                          ^
    opts/hosts.go:89:14: ST1005: error strings should not be capitalized (stylecheck)
            return "", fmt.Errorf("Invalid bind address format: %s", addr)
                       ^
    opts/hosts.go💯14: ST1005: error strings should not be capitalized (stylecheck)
            return "", fmt.Errorf("Invalid proto, expected %s: %s", proto, addr)
                       ^
    opts/hosts.go:119:14: ST1005: error strings should not be capitalized (stylecheck)
            return "", fmt.Errorf("Invalid proto, expected tcp: %s", tryAddr)
                       ^
    opts/hosts.go:144:14: ST1005: error strings should not be capitalized (stylecheck)
            return "", fmt.Errorf("Invalid bind address format: %s", tryAddr)
                       ^
    opts/hosts.go:155:14: ST1005: error strings should not be capitalized (stylecheck)
            return "", fmt.Errorf("Invalid bind address format: %s", tryAddr)
                       ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-09-03 21:25:42 +02:00
..
progress Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
testdata Update code for upstream cobra 2017-10-25 14:49:26 -04:00
ca.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
ca_test.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00
client_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
cmd.go hide swarm-related commands based on the current swarm status and role 2022-05-02 14:57:59 +02:00
init.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
init_test.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00
ipnet_slice.go Swarm init: use local IPNetSliceValue 2020-05-04 16:30:50 +02:00
ipnet_slice_test.go Swarm init: use local IPNetSliceValue 2020-05-04 16:30:50 +02:00
join.go hide swarm-related commands based on the current swarm status and role 2022-05-02 14:57:59 +02:00
join_test.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00
join_token.go hide swarm-related commands based on the current swarm status and role 2022-05-02 14:57:59 +02:00
join_token_test.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00
leave.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
leave_test.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00
opts.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00
opts_test.go linting: ST1005: error strings should not be capitalized (stylecheck) 2022-09-03 21:25:42 +02:00
unlock.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
unlock_key.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
unlock_key_test.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00
unlock_test.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00
update.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
update_test.go cli/command/swarm: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:11 +01:00