netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose.go

Summary

Maintainability
A
35 mins
Test Coverage

Method configComposer.parseTemplateData has 5 return statements (exceeds 4 allowed).
Open

func (c *configComposer) parseTemplateData(bs []byte) ([]confgroup.Config, error) {
    var data any
    if err := yaml.Unmarshal(bs, &data); err != nil {
        return nil, err
    }
Severity: Major
Found in src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status