Skip to main content

Compliance Scanning

Juro v2.0.0 provides deterministic, signed compliance scanning for the supported regulations (GDPR, DORA, DPDP) with high-throughput performance and real-time IDE integration. Scope is intentionally narrow — see VISION and PRINCIPLES.

Current Implementation Status​

✅ Fully Implemented (36 Rules)​

  • GDPR: 5 rules (Article 30 – processing documentation, retention, data subject rights)
  • DORA: 6 rules (Resilience – logging, encryption, incident response, business continuity, third-party risk, testing)
  • DPDP (India): 25 rules (Consent, notice, Data Principal rights, Data Fiduciary duties, cross-border, children's data, Aadhaar/PAN/mobile)

Advanced Scanning Features​

Real-Time Scanning (VS Code Extension)​

  • Instant Feedback: Get compliance violations as you type
  • Inline Highlighting: Visual indicators for violation severity
  • Hover Tooltips: Rich information with fix suggestions
  • Posture Score: Real-time per-regulation Posture Score updates (DPDP / GDPR / DORA, scoped per surface — see the Posture Score contract)
  • Zero Configuration: Works out of the box

Performance Optimization​

  • Intelligent Caching: 90%+ cache hit rate for repeated scans
  • Parallel Processing: Multi-threaded file scanning with configurable worker pools
  • Memory Management: Efficient handling of large files with chunked processing
  • Incremental Scanning: Only scan changed files for faster subsequent runs

Core Features​

  • Auto-Detection Engine: Automatically detects project types and relevant regulations
  • Smart Configuration: Auto-generates compliance configurations
  • Context-Aware Analysis: Advanced pattern matching for actual data vs. configuration
  • False Positive Reduction: Intelligent filtering to avoid false alarms

Performance Benchmarks​

Scanning Speed​

  • Small Projects (< 100 files): < 1 second
  • Medium Projects (100-1000 files): < 10 seconds
  • Large Projects (1000+ files): < 60 seconds
  • Cache Hit Rate: 90%+ for repeated scans

Resource Optimization​

  • Worker Pool: Configurable 1-8 workers for optimal performance
  • Memory Management: 10MB chunk size for large file processing
  • Parallel Processing: Up to 4x faster than sequential scanning
  • File Size Support: Up to 50MB files with memory-optimized streaming

Scanning Examples​

GDPR Compliance Scanning​

# Scan for GDPR violations (from juro repo root)
node packages/cli/dist/cli.js scan ./src -r GDPR -o json -f report.json

DORA Financial Compliance​

# Scan for DORA compliance
node packages/cli/dist/cli.js scan ./src -r DORA --severity HIGH,CRITICAL

DPDP (India) Compliance​

# Scan for DPDP violations
node packages/cli/dist/cli.js scan ./src -r DPDP -o table

# DPDP with JSON report
node packages/cli/dist/cli.js scan ./src -r DPDP -o json -f dpdp-report.json

# Scan a website and open HTML report
node packages/cli/dist/cli.js scan --url https://example.com -r DPDP -o html -f report.html --open

Multi-Regulation Scanning​

node packages/cli/dist/cli.js scan ./src -r DPDP,GDPR,DORA -o table

Integration Options​

VS Code Extension​

  • Real-time compliance scanning
  • Inline violation highlighting
  • Compliance score visualization
  • Zero configuration required

GitHub Actions​

  • Automated CI/CD compliance checks
  • PR comment integration
  • Team notifications
  • Custom workflow generation

CLI Tools​

  • Command-line scanning
  • Custom rule support
  • Batch processing
  • Report generation

Getting Started​