Skip to content

Node diver metrics #272

Node diver metrics

Node diver metrics #272

Triggered via pull request February 14, 2024 13:11
Status Success
Total duration 1m 33s
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#L506
commentFormatting: put a space between `//` and comment text (gocritic)
build: stader/node/node.go#L484
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#L552
unnecessary trailing newline (whitespace)
build: stader/node/node.go#L153
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#L496
var-naming: var operatorId should be operatorID (revive)