Fix revive style issues (bd-56)

- Fix 14 unused-parameter warnings (rename to _)
- Fix 2 redefines-builtin-id (max→maxCount, min→minInt)
- Fix 3 indent-error-flow issues with gofmt
- Merged duplicate bd-126 into bd-116
This commit is contained in:
Steve Yegge
2025-10-25 18:13:49 -07:00
parent 14e14f647e
commit bb33007036
17 changed files with 93 additions and 92 deletions

View File

@@ -42,7 +42,7 @@ Examples:
bd compact --id bd-42 --force # Force compact (bypass checks)
bd compact --stats # Show statistics
`,
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, _ []string) {
ctx := context.Background()
// Handle compact stats first
@@ -404,7 +404,7 @@ func progressBar(current, total int) string {
}
//nolint:unparam // ctx may be used in future for cancellation
func runCompactRPC(ctx context.Context) {
func runCompactRPC(_ context.Context) {
if compactID != "" && compactAll {
fmt.Fprintf(os.Stderr, "Error: cannot use --id and --all together\n")
os.Exit(1)