Skip to content

Fix validate command: output format, passthrough args, help text - #93

Merged
neuromechanist merged 2 commits into
devfrom
92-fix-validate-command-output-format-passthrough-args-help-text
Feb 2, 2026
Merged

neuromechanist merged 2 commits into
devfrom
92-fix-validate-command-output-format-passthrough-args-help-text

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • Default validate output now uses bids-validator native text format (grouped by error code, 2 examples per group, NeuroStars links, summary table) instead of listing every issue individually (17,460 lines -> 359 lines)
  • Passthrough flags forwarded directly to deno as-is (e.g., --max-rows 0, --ignoreNiftiHeaders)
  • Simplified help text with passthrough documentation, removed duplicate/cluttered info

Test plan

  • bun run build succeeds
  • bun test test/cli.test.ts passes (52/52 tests)
  • nemar dataset validate ./ds output matches deno run jsr:@bids/validator ./ds format
  • nemar dataset validate ./ds --json outputs raw JSON
  • nemar dataset validate ./ds --max-rows 0 passthrough works
  • nemar dataset validate --help is clean and concise
  • Upload command's programmatic validation path unchanged

Closes #92

- Default output now uses bids-validator native text format
  (grouped by error code with examples, not every issue)
- Passthrough flags forwarded directly to deno as-is
- Simplified help text with passthrough documentation
- Cleaned up validateBidsDataset for upload-only use
- Updated tests for new output behavior
…ogic

- Extract shared buildValidatorArgs() helper to eliminate duplicate
  arg-building between validateBidsDataset and runBidsValidatorDirect
- Remove unnecessary `as ReadableStream` cast in runBidsValidatorDirect
- Simplify redundant exit code branches in validate action
- Remove unused knownOptions parameter from collectPassthroughArgs
@neuromechanist
neuromechanist merged commit e62976c into dev Feb 2, 2026
6 of 7 checks passed
@neuromechanist
neuromechanist deleted the 92-fix-validate-command-output-format-passthrough-args-help-text branch February 7, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant