@opencodereview/cli
v2.0.2
Published
CLI tool for validating AI-generated code quality
Readme
@opencodereview/cli
CLI tool for Open Code Review - AI code quality scanner
Installation
npm install -g @opencodereview/cli
# or
npx @opencodereview/cli --helpUsage
# Quick scan
ocr scan src/
# With L2 (embedding + Ollama)
ocr scan src/ --sla L2
# PR diff scan
ocr scan src/ --diff --base origin/main
# Output formats
ocr scan src/ --format json --output report.json
ocr scan src/ --format html --output report.html
ocr scan src/ --format sarif --output report.sarifCommands
scan- Scan code for AI-generated defectsinit- Create .ocrrc.yml configurationlogin- Set up license keyconfig- View or update configuration
Links
License
BSL-1.1 - See LICENSE
