codeclimate/test-reporter

View on GitHub
formatters/simplecov/legacy_formatter.go

Summary

Maintainability
A
35 mins
Test Coverage

Function legacyFormat has 5 return statements (exceeds 4 allowed).
Open

func legacyFormat(r Formatter, rep formatters.Report) (formatters.Report, error) {
        logrus.Debugf("Analyzing simplecov json output from legacy format %s", r.Path)
        jf, err := os.Open(r.Path)
        if err != nil {
          return rep, errors.WithStack(errors.Errorf("could not open coverage file %s", r.Path))
Severity: Major
Found in formatters/simplecov/legacy_formatter.go - About 35 mins to fix

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    package simplecov

    There are no issues that match your filters.

    Category
    Status