firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/isc_dhcpd/init.go

Summary

Maintainability
A
35 mins
Test Coverage

Method DHCPd.validateConfig has 5 return statements (exceeds 4 allowed).
Open

func (d *DHCPd) validateConfig() error {
    if d.Config.LeasesPath == "" {
        return errors.New("'lease_path' parameter not set")
    }
    if len(d.Config.Pools) == 0 {
Severity: Major
Found in src/go/plugin/go.d/modules/isc_dhcpd/init.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status