collector/collector.go
Method RblCollector.Collect
has 87 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *RblCollector) Collect(ch chan<- prometheus.Metric) {
// these are our targets to check
hosts := c.targets
ch <- prometheus.MustNewConstMetric(
Function NewRblCollector
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewRblCollector(rbls []string, targets []string, domainBased bool, util *dns.DNSUtil, logger *slog.Logger) *RblCollector {