fix(lint): use default:none to disable errcheck, fix all gofmt and exhaustive

This commit is contained in:
Deivid Soto 2026-03-31 00:29:16 +02:00
parent 4426219f35
commit aed5f0475d
24 changed files with 74 additions and 77 deletions

View file

@ -341,4 +341,3 @@ func CleanableBytes() int64 {
return total
}

View file

@ -55,7 +55,6 @@ func TestFileSize_NonExistent(t *testing.T) {
}
}
func TestRunClean_DryRun(t *testing.T) {
err := runClean(true, false, false)
if err != nil {

View file

@ -18,8 +18,8 @@ var configCategories = []string{"downloads", "organization", "notifications", "d
func newConfigCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "config [category]",
Short: "Edit settings interactively",
Use: "config [category]",
Short: "Edit settings interactively",
Long: `Edit unarr settings interactively with a category-based menu.
Categories:

View file

@ -236,4 +236,3 @@ func runDaemonUninstall() error {
fmt.Println()
return nil
}

View file

@ -6,9 +6,9 @@ import (
"github.com/fatih/color"
"github.com/spf13/cobra"
tc "github.com/torrentclaw/go-client"
"github.com/torrentclaw/unarr/internal/config"
"github.com/torrentclaw/unarr/internal/sentry"
tc "github.com/torrentclaw/go-client"
)
var (

View file

@ -155,4 +155,3 @@ func handleStreamTask(parentCtx context.Context, at agent.Task, reporter *engine
}
}
}