You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs/config.md per-command flag list is wrong for bench and debug #152
The per-command flag list in docs/config.md is wrong for bench and debug, leaves out the baseline command, and never mentions --diff-scope.
Where and what
docs/config.md:113 says "bench takes all but --authorize, --pr, --fail-on, --fail-on-confidence and --format" and "debug takes all but --authorize, --pr, --fail-on and --fail-on-confidence". "All" refers to the list at line 107, which includes --baseline, --ref, --since, --changed, --staged, --resume and --dry-run. Neither command takes any of these: --baseline is in its own group, which only scan registers (internal/cli/flags.go:62-69), and the diff and resume flags are registered only in internal/cli/scan.go. Passing spackle debug --baseline x is a usage error (exit 2). List the flags each command takes, or add these to the exclusions.
Same line: the spackle baseline command is missing. It takes --config, --out (a file, or - for stdout) and --reason (internal/cli/baseline.go:21-23).
docs/config.md:107 describes --since, --changed and --staged but not --diff-scope (internal/cli/scan.go:34; file is the default, lines keeps only leads on changed lines). docs/ci.md and docs/mcp.md document it.
Impact
A user who copies a scan flag into bench or debug because the docs say it is accepted gets exit code 2.
Fixed in f3048c8: config.md now names the scan-only flags and lists what bench, debug and baseline take, checked against each command's --help, and describes --diff-scope next to --since, --changed and --staged.
Activity
TMHSDigital commentedon Nov 28, 2026
Fixed in f3048c8: config.md now names the scan-only flags and lists what bench, debug and baseline take, checked against each command's --help, and describes --diff-scope next to --since, --changed and --staged.