codeclimate/test-reporter

View on GitHub
formatters/simplecov/json_formatter.go

Summary

Maintainability
A
40 mins
Test Coverage

Function jsonFormat has 6 return statements (exceeds 4 allowed).
Open

func jsonFormat(r Formatter, rep formatters.Report) (formatters.Report, error) {
    logrus.Debugf("Analyzing simplecov json output from latest 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/json_formatter.go - About 40 mins to fix

    type simplecovJsonFormatterReport should be simplecovJSONFormatterReport
    Open

    type simplecovJsonFormatterReport struct {

    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