Skip to content

feat: docker network stats #2

feat: docker network stats

feat: docker network stats #2

GitHub Actions / golangci succeeded Jan 4, 2024 in 1s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (34)

modules/k8s_state/discover_node.go|20 col 20| Error return value of si.AddEventHandler is not checked (errcheck)
modules/k8s_state/discover_pod.go|20 col 20| Error return value of si.AddEventHandler is not checked (errcheck)
agent/vnodes/vnodes.go|40 col 3| field mux is unused (unused)
agent/discovery/dyncfg/dyncfg.go|102 col 21| func (*Discovery).getPluginConfigSchema is unused (unused)
agent/discovery/dyncfg/ext.go|72 col 5| var envNDStockConfigDir is unused (unused)
agent/discovery/dyncfg/ext.go|74 col 6| func isStock is unused (unused)
modules/windows/collect_hyperv.go|15 col 2| const metricHypervHypervisorLogicalProcessors is unused (unused)
modules/windows/collect_hyperv.go|16 col 2| const metricHypervHypervisorVirtualProcessors is unused (unused)
modules/windows/collect_hyperv.go|18 col 2| const metricHypervHostCPUGuestRunTime is unused (unused)
modules/windows/collect_hyperv.go|19 col 2| const metricHypervHostCPUHypervisorRunTime is unused (unused)
modules/windows/collect_hyperv.go|20 col 2| const metricHypervHostCPURemoteRunTime is unused (unused)
modules/windows/collect_hyperv.go|21 col 2| const metricHypervHostCPUTotalRunTime is unused (unused)
modules/windows/collect_hyperv.go|22 col 2| const metricHypervHostLPGuestRunTimePercent is unused (unused)
modules/windows/collect_hyperv.go|23 col 2| const metricHypervHostLPHypervisorRunTimePercent is unused (unused)
modules/windows/collect_hyperv.go|24 col 2| const metricHypervHostLPTotalRunTimePercent is unused (unused)
modules/windows/windows.go|81 col 3| field doCheck is unused (unused)
modules/pihole/pihole_test.go|200 col 2| field errOnTopClients is unused (unused)
modules/pihole/pihole_test.go|201 col 2| field errOnTopItems is unused (unused)
modules/consul/collect_autopilot.go|49 col 47| S1012: should use time.Since instead of time.Now().Sub (gosimple)
agent/jobmgr/noop.go|18 col 64| S1023: redundant return statement (gosimple)
agent/jobmgr/noop.go|19 col 64| S1023: redundant return statement (gosimple)
agent/jobmgr/noop.go|20 col 64| S1023: redundant return statement (gosimple)
modules/windows/charts.go|4552 col 6| SA4031: this nil check is never true (staticcheck)
modules/windows/charts.go|4523 col 11| SA4031(related information): this is one of the value of dim (staticcheck)
modules/windows/charts.go|4529 col 11| SA4031(related information): this is one of the value of dim (staticcheck)
modules/windows/charts.go|4532 col 11| SA4031(related information): this is one of the value of dim (staticcheck)
modules/mongodb/client.go|245 col 17| SA1019: mongo.NewClient is deprecated: Use [Connect] instead. (staticcheck)
modules/mongodb/client.go|253 col 12| SA1019: client.Connect is deprecated: Use [mongo.Connect] instead. (staticcheck)
agent/agent.go|104 col 32| SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
modules/nvidia_smi/collect_xml.go|132 col 21| SA4025: the integer division '1 / 5' results in zero (staticcheck)
modules/nvidia_smi/collect_xml.go|134 col 19| SA4025: the integer division '1 / 5' results in zero (staticcheck)
modules/nvidia_smi/collect_xml.go|136 col 19| SA4025: the integer division '2 / 130' results in zero (staticcheck)
modules/nvidia_smi/collect_xml.go|138 col 20| SA4025: the integer division '2 / 130' results in zero (staticcheck)
modules/nvidia_smi/collect_xml.go|140 col 20| SA4025: the integer division '2 / 130' results in zero (staticcheck)