Review Command

The review command runs review functions defined in PackageFiles for code that has been edited.

Usage

ocuroot review

Description

The review command analyzes files that have been modified and runs any applicable review functions defined in your PackageFiles. A file is considered modified if either:

  • It has been edited but not committed
  • The commit at HEAD is clean and the file is included in that commit

Review functions can include various checks such as:

  • Code formatting
  • Linting
  • Custom validation rules
  • Policy compliance checks

Examples

# Run review on all modified files
ocuroot review

Output

The command will output the results of all review functions that were run, including:

  • Pass/fail status
  • Any errors or warnings
  • Suggestions for improvements
  • build: Build packages and return outputs
  • sync: Synchronize your local state with the Ocuroot server