reader.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func decodeContentTypes(r io.Reader) (*contentTypes, error) {
    ctdecode := new(contentTypesXMLReader)
    if err := xml.NewDecoder(r).Decode(ctdecode); err != nil {
        return nil, fmt.Errorf("opc: %s: cannot be decoded: %v", contentTypesName, err)
    }
Severity: Major
Found in reader.go - About 35 mins to fix

    Method Reader.loadPackage has 5 return statements (exceeds 4 allowed).
    Open

    func (r *Reader) loadPackage() error {
        ct, rels, err := r.loadPartProperties()
        if err != nil {
            return err
        }
    Severity: Major
    Found in reader.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status