grokify/mogo

View on GitHub
compress/ziputil/create_achive.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func AddFileToZip(zipWriter *zip.Writer, filename string, removePaths bool) error {
    fileToZip, err := os.Open(filename)
    if err != nil {
        return err
    }
Severity: Major
Found in compress/ziputil/create_achive.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status