Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add validate command#10022

Merged
davidfirst merged 5 commits intomasterfrom
add-validate-command
Oct 2, 2025
Merged

feat: add validate command#10022
davidfirst merged 5 commits intomasterfrom
add-validate-command

Conversation

@davidfirst
Copy link
Member

@davidfirst davidfirst commented Oct 1, 2025

Adds a new bit validate command that runs check-types, lint, and test in sequence.

  • Created new validator aspect in scopes/defender/validator
  • Command stops at first failure and returns non-zero exit code (use --continue-on-error to run all checks)
  • Shows detailed error output for each validation step
  • By default validates only new/modified components, use --all for all components

Usage

bit validate                     # Validate modified/new components
bit validate --all               # Validate all components
bit validate --continue-on-error # Run all checks even when errors are found
bit validate [pattern]           # Validate specific components

…ence

The command stops at the first failure and returns a non-zero exit code.
By default validates only new and modified components, use --all flag to validate all.
Shows detailed error output for each validation step.
Covers validation scenarios:
- Components without errors (all steps pass)
- Components with type errors (fails at step 1)
- Components with lint errors (fails at step 2, shows error details)
- Using --all flag to validate all components
- Using component pattern to validate specific components
- No components to validate scenario
@davidfirst davidfirst enabled auto-merge (squash) October 2, 2025 21:06
@davidfirst davidfirst merged commit 2037320 into master Oct 2, 2025
11 checks passed
@davidfirst davidfirst deleted the add-validate-command branch October 2, 2025 21:45
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.

2 participants