glaciers-in-archives/snowman

View on GitHub
cmd/cache.go

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

            if err != nil {
                return utils.ErrorExit("Failed to remove find query file.", err)
            }
Severity: Major
Found in cmd/cache.go - About 45 mins to fix

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

    func printFileContents(path string) error {
        fmt.Println(path)
        file, err := os.Open(path)
        if err != nil {
            return err
    Severity: Major
    Found in cmd/cache.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status