NSM Dashboard initial impl. #3
ci.yaml
on: pull_request
yamllint
/
yamllint
10s
shellcheck
/
shellcheck
13s
golangci-lint
/
golangci-lint
41s
excludeFmtErrorf
/
exclude-fmt-errorf
2s
restrictNSMDeps
/
restrict-nsm-deps
4s
checkgomod
/
checkgomod
10s
gogenerate
/
gogenerate
15s
excludereplace
/
excludereplace
2s
docker-build-and-test
/
push
49s
Annotations
13 errors and 10 warnings
restrictNSMDeps / restrict-nsm-deps
Process completed with exit code 1.
|
checkgomod / checkgomod
Process completed with exit code 1.
|
golangci-lint / golangci-lint:
model.go#L41
`Registry` is unused (deadcode)
|
golangci-lint / golangci-lint:
model.go#L51
`ServiceRequest` is unused (deadcode)
|
golangci-lint / golangci-lint:
model.go#L52
`RegistryRequest` is unused (deadcode)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L61
Function 'main' has too many statements (57 > 50) (funlen)
|
golangci-lint / golangci-lint:
model.go#L103
ifElseChain: rewrite if-else to switch statement (gocritic)
|
golangci-lint / golangci-lint:
model.go#L194
ifElseChain: rewrite if-else to switch statement (gocritic)
|
golangci-lint / golangci-lint:
model.go#L150
paramTypeCombine: func(id string, parentId string, label string) Node could be replaced with func(id, parentId, label string) Node (gocritic)
|
golangci-lint / golangci-lint:
model.go#L159
paramTypeCombine: func(edges []Edge, sourceId string, targetId string, edgeType EdgeType, healthy bool) []Edge could be replaced with func(edges []Edge, sourceId, targetId string, edgeType EdgeType, healthy bool) []Edge (gocritic)
|
golangci-lint / golangci-lint:
model.go#L72
cyclomatic complexity 17 of func `parceConnectionsToGraphicalModel` is high (> 15) (gocyclo)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L1
Missed header for check (goheader)
|
docker-build-and-test / push
Process completed with exit code 1.
|
golangci-lint / golangci-lint:
model.go#L173
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L32
var-naming: don't use ALL_CAPS in Go names; use CamelCase (revive)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L67
var-naming: don't use ALL_CAPS in Go names; use CamelCase (revive)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L121
var-naming: don't use underscores in Go names; var client_nse should be clientNse (revive)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L123
var-naming: don't use underscores in Go names; var stream_nse should be streamNse (revive)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L135
var-naming: don't use underscores in Go names; var nsmgr_addr should be nsmgrAddr (revive)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L162
var-naming: var connectionId should be connectionID (revive)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L34
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint / golangci-lint:
dashboard-backend.go#L45
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint / golangci-lint:
model.go#L76
var-naming: range var connectionId should be connectionID (revive)
|