restic/cli/restore.go

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Method Restic.folderRestore has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (r *Restic) folderRestore(restoreDir string, snapshot dto.Snapshot, restoreFilter string, verify bool, log logr.Logger) error {
Severity: Minor
Found in restic/cli/restore.go - About 35 mins to fix

    Method Restic.isRestoreSingleFile has 5 return statements (exceeds 4 allowed).
    Open

    func (r *Restic) isRestoreSingleFile(log logr.Logger, snapshot dto.Snapshot) (bool, error) {
        buf := bytes.Buffer{}
    
        opts := CommandOptions{
            Path:   r.resticPath,
    Severity: Major
    Found in restic/cli/restore.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status