Luzilla/dnsbl_exporter

View on GitHub
collector/collector.go

Summary

Maintainability
A
3 hrs
Test Coverage

Method RblCollector.Collect has 87 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *RblCollector) Collect(ch chan<- prometheus.Metric) {
    // these are our targets to check
    hosts := c.targets

    ch <- prometheus.MustNewConstMetric(
Severity: Major
Found in collector/collector.go - About 2 hrs to fix

    Function NewRblCollector has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func NewRblCollector(rbls []string, targets []string, domainBased bool, util *dns.DNSUtil, logger *slog.Logger) *RblCollector {
    Severity: Minor
    Found in collector/collector.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status