mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-07-17 14:35:25 +08:00
Lint fixes (#539)
* fix various additional linter errors * extend golangci checks
This commit is contained in:
parent
ac538092be
commit
6b259336bd
7 changed files with 147 additions and 118 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue