mirror of https://github.com/docker/compose.git
Add "diagnostic" tag to gocritic
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
2e96829607
commit
a81f23a199
|
@ -33,6 +33,11 @@ linters-settings:
|
|||
# The io/ioutil package has been deprecated.
|
||||
# https://go.dev/doc/go1.16#ioutil
|
||||
- io/ioutil
|
||||
gocritic:
|
||||
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
|
||||
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
|
||||
enabled-tags:
|
||||
- diagnostic
|
||||
gocyclo:
|
||||
min-complexity: 16
|
||||
lll:
|
||||
|
|
|
@ -355,7 +355,7 @@ func setEnvWithDotEnv(prjOpts *projectOptions) error {
|
|||
}
|
||||
for k, v := range envFromFile {
|
||||
if _, ok := os.LookupEnv(k); !ok {
|
||||
if err = os.Setenv(k, v); err != nil {
|
||||
if err := os.Setenv(k, v); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
|
@ -216,7 +216,7 @@ func (c *CLI) NewCmdWithEnv(envvars []string, command string, args ...string) ic
|
|||
|
||||
// MetricsSocket get the path where test metrics will be sent
|
||||
func (c *CLI) MetricsSocket() string {
|
||||
return filepath.Join(c.ConfigDir, "./docker-cli.sock")
|
||||
return filepath.Join(c.ConfigDir, "docker-cli.sock")
|
||||
}
|
||||
|
||||
// NewDockerCmd creates a docker cmd without running it
|
||||
|
|
Loading…
Reference in New Issue