opencontrol/compliance-masonry

View on GitHub
pkg/lib/opencontrol/parse.go

Summary

Maintainability
A
35 mins
Test Coverage

Method YAMLParser.Parse has 5 return statements (exceeds 4 allowed).
Open

func (parser YAMLParser) Parse(data []byte) (common.OpenControl, error) {
    if data == nil || len(data) == 0 {
        return nil, common.ErrNoDataToParse
    }
    b := Base{}
Severity: Major
Found in pkg/lib/opencontrol/parse.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status