codeclimate/test-reporter

View on GitHub
formatters/lcovjson/json_input.go

Summary

Maintainability
A
1 hr
Test Coverage

Method region.UnmarshalJSON has 10 return statements (exceeds 4 allowed).
Open

func (region *region) UnmarshalJSON(data []byte) error {
    var array []interface{}
    if err := json.Unmarshal(data, &array); err != nil {
        return err
    }
Severity: Major
Found in formatters/lcovjson/json_input.go - About 1 hr to fix

    Method segment.UnmarshalJSON has 7 return statements (exceeds 4 allowed).
    Open

    func (segment *segment) UnmarshalJSON(data []byte) error {
        var array []interface{}
        if err := json.Unmarshal(data, &array); err != nil {
            return err
        }
    Severity: Major
    Found in formatters/lcovjson/json_input.go - About 45 mins to fix

      Your code does not pass gofmt in 3 places. Go fmt your code!
      Open

      package lcovjson
      Severity: Minor
      Found in formatters/lcovjson/json_input.go by gofmt

      type lcovJsonFile should be lcovJSONFile
      Open

      type lcovJsonFile struct {
      Severity: Minor
      Found in formatters/lcovjson/json_input.go by golint

      There are no issues that match your filters.

      Category
      Status