Skip to content

Node diver metrics #276

Node diver metrics

Node diver metrics #276

Triggered via pull request February 15, 2024 09:49
Status Success
Total duration 1m 29s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
build: shared/services/ec-manager.go#L534
dupBranchBody: both branches in if statement have same body (gocritic)
build: stader/node/node.go#L510
commentFormatting: put a space between `//` and comment text (gocritic)
build: stader/node/node.go#L488
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
build: stader/node/node_test.go#L12
dupImport: package is imported 2 times under different aliases on lines 12 and 13 (gocritic)
build: stader/node/node_test.go#L13
dupImport: package is imported 2 times under different aliases on lines 12 and 13 (gocritic)
build: shared/services/wallet/node.go#L192
unnecessary leading newline (whitespace)
build: shared/utils/stader/node-diversity.go#L37
unnecessary trailing newline (whitespace)
build: stader/node/node.go#L555
unnecessary trailing newline (whitespace)
build: stader/node/node.go#L154
mnd: Magic number: 4, in <argument> detected (gomnd)
build: shared/types/stader-backend/node-diversity.go#L3
fieldalignment: struct with 24 pointer bytes could be 16 (govet)
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build: shared/types/stader-backend/node-diversity.go#L1
var-naming: don't use an underscore in package name (revive)
build: shared/services/config/stadernode-config.go#L327
var-naming: method GetNodeDiversityApi should be GetNodeDiversityAPI (revive)
build: shared/services/ec-manager.go#L544
var-naming: struct field Id should be ID (revive)
build: stader/node/node.go#L500
var-naming: var operatorId should be operatorID (revive)