This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Commit 83568ec
Ian Campbell
ci: add all default-enabled golangci-lint linters
This adds the enabled by default ones not in the current list.
Note that `govet` is a synonym for `vet`, use `govet` since it is the one used
in the list.
This brings up several issues:
internal/commands/cnab_test.go:19:22: Error return value of `dockerCli.Initialize` is not checked (errcheck)
dockerCli.Initialize(cliflags.NewClientOptions())
^
internal/commands/completion.go:183:27: Error return value of `rootCmd.GenBashCompletion` is not checked (errcheck)
rootCmd.GenBashCompletion(buf)
^
internal/commands/push.go:186:13: Error return value of `r.out.Write` is not checked (errcheck)
r.out.Write(out.Bytes())
^
internal/commands/root.go:52:17: Error return value of `dockerCli.Apply` is not checked (errcheck)
dockerCli.Apply(command.WithCombinedStreams(ioutil.Discard))
^
internal/commands/root.go:54:18: Error return value of `dockerCli.Apply` is not checked (errcheck)
dockerCli.Apply(command.WithOutputStream(stdout), command.WithErrorStream(stderr))
^
cmd/cnab-run/render.go:42:13: SA1006: printf-style function with dynamic first argument and no further arguments should use print-style function instead (staticcheck)
fmt.Printf(res)
^
e2e/commands_test.go:74:3: SA4006: this value of `result` is never used (staticcheck)
result = icmd.RunCmd(cmd).Assert(t, icmd.Success)
^
Fix them all.
Signed-off-by: Ian Campbell <ijc@docker.com>1 parent 83e60a2 commit 83568ec
7 files changed
Lines changed: 18 additions & 8 deletions
File tree
- cmd/cnab-run
- e2e
- internal/commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | | - | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
0 commit comments