Skip to content

#213 add golangci-lint job to pull request check #2

#213 add golangci-lint job to pull request check

#213 add golangci-lint job to pull request check #2

Triggered via pull request October 15, 2024 19:43
Status Failure
Total duration 6m 34s
Artifacts

pull_request.yml

on: pull_request
tests  /  integration-tests
5m 18s
tests / integration-tests
build  /  build-docker-images-and-push
0s
build / build-docker-images-and-push
Matrix: build / build-binary
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: internal/db/postgres/context/context.go#L78
SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
lint: internal/db/postgres/context/virtual_references.go#L84
SA4006: this value of `vrWarns` is never used (staticcheck)
lint: internal/generators/transformers/random_numeric.go#L36
S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)
lint: internal/generators/transformers/noise_timestamp.go#L96
ineffectual assignment to nano (ineffassign)
lint: internal/generators/transformers/noise_int64_test.go#L21
ineffectual assignment to err (ineffassign)
lint: internal/generators/transformers/random_ip_test.go#L51
ineffectual assignment to err (ineffassign)
lint: internal/generators/transformers/random_mac_test.go#L103
ineffectual assignment to err (ineffassign)
lint: internal/utils/dumpstatus/status.go#L52
SA5001: should check error returned from st.GetObject() before deferring f.Close() (staticcheck)
lint: pkg/toolkit/test/test.go#L32
SA4001: &*x will be simplified to x. It will not copy x. (staticcheck)
lint: internal/db/postgres/transformers/hash_test.go#L215
Error return value of `record.Row.Encode` is not checked (errcheck)