wrap some errors and fix static check error style warning #402
Annotations
32 errors
lint (1.22, macos-latest):
pkg/amd/apcb/apcb_test.go#L11
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
lint (1.22, macos-latest):
cmds/fittool/main.go#L70
Error return value of `flagsParser.Parse` is not checked (errcheck)
|
lint (1.22, macos-latest):
cmds/create-ffs/create-ffs.go#L172
Error return value of `mainSection.GenSecHeader` is not checked (errcheck)
|
lint (1.22, macos-latest):
cmds/create-ffs/create-ffs.go#L29
var `compress` is unused (unused)
|
lint (1.22, macos-latest):
cmds/create-ffs/create-ffs.go#L30
var `auto` is unused (unused)
|
lint (1.22, macos-latest):
pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go#L17
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
|
lint (1.22, macos-latest):
pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go#L19
SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, [crypto/rand.Read] is more appropriate. (staticcheck)
|
lint (1.22, macos-latest)
issues found
|
lint (1.21, ubuntu-latest)
The job was canceled because "_1_22_macos-latest" failed.
|
lint (1.21, ubuntu-latest):
cmds/create-ffs/create-ffs.go#L172
Error return value of `mainSection.GenSecHeader` is not checked (errcheck)
|
lint (1.21, ubuntu-latest):
cmds/fittool/main.go#L70
Error return value of `flagsParser.Parse` is not checked (errcheck)
|
lint (1.21, ubuntu-latest):
cmds/create-ffs/create-ffs.go#L29
var `compress` is unused (unused)
|
lint (1.21, ubuntu-latest):
cmds/create-ffs/create-ffs.go#L30
var `auto` is unused (unused)
|
lint (1.21, ubuntu-latest):
pkg/amd/apcb/apcb_test.go#L11
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
lint (1.21, ubuntu-latest):
pkg/bytes/is_zero_filled_amd64.go#L17
SA1019: reflect.SliceHeader has been deprecated since Go 1.21 and an alternative has been available since Go 1.17: Use unsafe.Slice or unsafe.SliceData instead. (staticcheck)
|
lint (1.21, ubuntu-latest):
pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go#L17
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
|
lint (1.21, ubuntu-latest):
pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go#L19
SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck)
|
lint (1.21, ubuntu-latest)
issues found
|
lint (1.23, ubuntu-latest)
The job was canceled because "_1_22_macos-latest" failed.
|
lint (1.23, ubuntu-latest)
The operation was canceled.
|
lint (1.22, ubuntu-latest)
The job was canceled because "_1_22_macos-latest" failed.
|
lint (1.22, ubuntu-latest)
The operation was canceled.
|
lint (1.21, windows-latest)
The job was canceled because "_1_22_macos-latest" failed.
|
lint (1.21, windows-latest)
The operation was canceled.
|
lint (1.23, windows-latest)
The job was canceled because "_1_22_macos-latest" failed.
|
lint (1.23, windows-latest)
The operation was canceled.
|
lint (1.23, macos-latest)
The job was canceled because "_1_22_macos-latest" failed.
|
lint (1.23, macos-latest)
The operation was canceled.
|
lint (1.22, windows-latest)
The job was canceled because "_1_22_macos-latest" failed.
|
lint (1.22, windows-latest)
The operation was canceled.
|
lint (1.21, macos-latest)
The job was canceled because "_1_22_macos-latest" failed.
|
lint (1.21, macos-latest)
The operation was canceled.
|