Lint fixes (#539)

* fix various additional linter errors

* extend golangci checks
This commit is contained in:
Jörg Thalheim 2024-04-18 16:19:26 +02:00 committed by GitHub
parent ac538092be
commit 6b259336bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 147 additions and 118 deletions

View file

@ -29,7 +29,7 @@ func TestShellHook(t *testing.T) {
}
tempdir, err := os.MkdirTemp("", "testdir")
ok(t, err)
cmd := exec.Command("cp", "-vra", assets+"/.", tempdir)
cmd := exec.Command("cp", "-vra", assets+"/.", tempdir) // nolint:gosec
fmt.Printf("$ %s\n", strings.Join(cmd.Args, " "))
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
@ -37,7 +37,7 @@ func TestShellHook(t *testing.T) {
defer os.RemoveAll(tempdir)
cmd = exec.Command("nix-shell", path.Join(assets, "shell.nix"), "--run", "gpg --list-keys")
cmd = exec.Command("nix-shell", path.Join(assets, "shell.nix"), "--run", "gpg --list-keys") // nolint:gosec
var stdoutBuf, stderrBuf bytes.Buffer
cmd.Stdout = &stdoutBuf
cmd.Stderr = &stderrBuf