gokultp/go-tprof

View on GitHub
internal/parser/factory.go

Summary

Maintainability
A
0 mins
Test Coverage

Function GetParser has 6 return statements (exceeds 4 allowed).
Invalid

func GetParser(txt string, failFunc string) Parser {
    if p := NewDescriptionParser(txt); p.IsAbleToParse() {
        return p
    }
    if p := NewPackageStatusParser(txt); p.IsAbleToParse() {
Severity: Major
Found in internal/parser/factory.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status