grokify/mogo

View on GitHub
archive/tarutil/writer.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func AddFileToArchive(tw *tar.Writer, filename, archivename string) error {
    // Open the file which will be written into the archive
    file, err := os.Open(filename)
    if err != nil {
        return err
Severity: Major
Found in archive/tarutil/writer.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status