Skip to content

chore(*): fix golangci lint config #116

chore(*): fix golangci lint config

chore(*): fix golangci lint config #116

Triggered via pull request November 12, 2024 10:32
Status Failure
Total duration 3m 38s
Billable time 4m
Artifacts 4

ci.yml

on: pull_request
docker_pipeline  /  prepare-metadata
0s
docker_pipeline / prepare-metadata
lint_test  /  build
0s
lint_test / build
lint_test  /  lint
1m 34s
lint_test / lint
lint_test  /  unit-tests
25s
lint_test / unit-tests
lint_test  /  integration-tests
3m 28s
lint_test / integration-tests
lint_test  /  check-mock-gen
0s
lint_test / check-mock-gen
lint_test  /  gosec
0s
lint_test / gosec
Matrix: docker_pipeline / docker_build
docker_pipeline  /  merge_dockerhub
0s
docker_pipeline / merge_dockerhub
docker_pipeline  /  merge_ecr
0s
docker_pipeline / merge_ecr
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint_test / lint: stakerdb/trackedtranactionstore.go#L1244
ifElseChain: rewrite if-else to switch statement (gocritic)
lint_test / lint: stakerdb/trackedtranactionstore.go#L733
unslice: could simplify txHashBytes[:] to txHashBytes (gocritic)
lint_test / lint: stakerdb/trackedtranactionstore.go#L784
unslice: could simplify txHashBytes[:] to txHashBytes (gocritic)
lint_test / lint: stakercfg/babylon.go#L28
commentFormatting: put a space between `//` and comment text (gocritic)
lint_test / lint: staker/stakerapp.go#L701
ifElseChain: rewrite if-else to switch statement (gocritic)
lint_test / lint: staker/stakercontroller.go#L19
captLocal: `BabylonClient' should not be capitalized (gocritic)
lint_test / lint: staker/types.go#L223
assignOp: replace `spendTx.TxOut[0].Value = spendTx.TxOut[0].Value - int64(fee)` with `spendTx.TxOut[0].Value -= int64(fee)` (gocritic)
lint_test / lint: staker/types.go#L245
ifElseChain: rewrite if-else to switch statement (gocritic)
lint_test / lint: stakerservice/service.go#L198
ifElseChain: rewrite if-else to switch statement (gocritic)
lint_test / lint: stakerservice/service.go#L212
ifElseChain: rewrite if-else to switch statement (gocritic)

Artifacts

Produced during runtime
Name Size
babylonlabs-io~btc-staker~5BJR6Y.dockerbuild
17.7 KB
babylonlabs-io~btc-staker~L5P1JE.dockerbuild
17 KB
babylonlabs-io~btc-staker~UIFBIO.dockerbuild
57.7 KB
babylonlabs-io~btc-staker~VO6XCN.dockerbuild
58.7 KB