Skip to content

Fix linter errors

Fix linter errors #67

Triggered via pull request March 29, 2024 10:36
@GreyCatGreyCat
synchronize #29
fix_linter
Status Failure
Total duration 17s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
Lint: kaitai/stream_test.go#L760
760-787 lines are duplicate of `kaitai/stream_test.go:789-816` (dupl)
Lint: kaitai/stream_test.go#L789
789-816 lines are duplicate of `kaitai/stream_test.go:760-787` (dupl)
Lint: kaitai/stream.go#L212
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"ReadBytes(%d): negative number of bytes to read\", n)" (goerr113)
Lint: kaitai/stream.go#L325
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"ReadBitsIntBe(%d): more than 8 bytes requested\", n)" (goerr113)
Lint: kaitai/stream.go#L366
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"ReadBitsIntLe(%d): more than 8 bytes requested\", n)" (goerr113)
Lint: kaitai/stream.go#L55
error returned from external package is unwrapped: sig: func (io.Seeker).Seek(offset int64, whence int) (int64, error) (wrapcheck)
Lint: kaitai/stream.go#L70
error returned from external package is unwrapped: sig: func (io.Seeker).Seek(offset int64, whence int) (int64, error) (wrapcheck)
Lint: kaitai/stream.go#L79
error returned from external package is unwrapped: sig: func (io.Seeker).Seek(offset int64, whence int) (int64, error) (wrapcheck)
Lint: kaitai/stream.go#L271
error returned from external package is unwrapped: sig: func (*bufio.Reader).ReadBytes(delim byte) ([]byte, error) (wrapcheck)
Lint: kaitai/util.go#L46
error returned from external package is unwrapped: sig: func compress/zlib.NewReader(r io.Reader) (io.ReadCloser, error) (wrapcheck)
Lint: kaitai/stream.go#L288
unused-parameter: parameter 'encoding' seems to be unused, consider removing or renaming it as _ (revive)
Lint: kaitai/stream.go#L299
unused-parameter: parameter 'encoding' seems to be unused, consider removing or renaming it as _ (revive)
Lint: kaitai/stream.go#L392
unused-parameter: parameter 'n' seems to be unused, consider removing or renaming it as _ (revive)