Skip to content

Add ingress feature to controller #49

Add ingress feature to controller

Add ingress feature to controller #49

Triggered via push February 20, 2025 19:44
Status Failure
Total duration 2m 0s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
Run on Ubuntu: internal/controller/nbroutingpeer_controller.go#L286
Error return value of `(*github.com/netbirdio/netbird/management/client/rest.NetworkRoutersAPI).Update` is not checked (errcheck)
Run on Ubuntu: internal/controller/nbroutingpeer_controller.go#L505
cyclomatic complexity 38 of func `(*NBRoutingPeerReconciler).handleDelete` is high (> 30) (gocyclo)
Run on Ubuntu: internal/controller/nbgroup_controller.go#L50
ineffectual assignment to err (ineffassign)
Run on Ubuntu: internal/controller/nbresource_controller.go#L107
ineffectual assignment to err (ineffassign)
Run on Ubuntu: internal/controller/service_controller.go#L103
ineffectual assignment to networkName (ineffassign)
Run on Ubuntu: cmd/main.go#L79
The line is 134 characters long, which exceeds the maximum of 120 characters. (lll)
Run on Ubuntu: cmd/main.go#L80
The line is 167 characters long, which exceeds the maximum of 120 characters. (lll)
Run on Ubuntu: internal/controller/nbroutingpeer_controller.go#L604
SA4006: this value of `err` is never used (staticcheck)
Run on Ubuntu
issues found
Run on Ubuntu
Cache not found for keys: golangci-lint.cache-Linux-2877-6c719f1ce36c39c977fbd6e156bd7c9c5bf9627f, golangci-lint.cache-Linux-2877-
Run on Ubuntu
Cache not found for keys: setup-go-Linux-x64-ubuntu24-go-1.23.0-ebd01664ae6fecf9b24ef221ea982e7ebb5bd2accba282f285160046b7fa9a6e