formatters/simplecov/legacy_formatter.go
Function legacyFormat
has 5 return statements (exceeds 4 allowed). Open
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))
Your code does not pass gofmt in 1 place. Go fmt your code! Open
Open
package simplecov
- Exclude checks