Commit 3de9ff1
committed
Fix lint: add missing G115 nolint in tree.go, remove unused nolints in port.go
- cli/command/image/tree.go:392: add missing nolint:gosec for G115
(uint -> int conversion for terminal width, fits within int range)
- opts/swarmopts/port.go:83,94,180: remove nolint:gosec directives that
gosec does not trigger on (caught by nolintlint as unused directives);
these uint64->uint32 conversions from ParseUint with bitSize=16 are
inherently safe without annotation
Signed-off-by: abhay1999 <abhaychaurasiya19@gmail.com>1 parent 05542cc commit 3de9ff1
2 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
0 commit comments