formatters/simplecov/json_formatter.go
Function jsonFormat
has 6 return statements (exceeds 4 allowed). Open
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))
type simplecovJsonFormatterReport should be simplecovJSONFormatterReport Open
Open
type simplecovJsonFormatterReport struct {
- Exclude checks
Your code does not pass gofmt in 1 place. Go fmt your code! Open
Open
package simplecov
- Exclude checks