Configuration
Customize Rigour for your project with rigour.yml.
Minimal Configuration
Create a rigour.yml in your project root. Rigour uses sensible defaults, but a basic config helps define your project's identity:
# rigour.yml
version: 1
preset: api # api, ui, infra, or data
paradigm: oop # oop, functional, or minimal
# Quality Gates
gates:
max_file_lines: 500
ast:
complexity: 10
max_params: 5
Configuration Core
1. Safety Rails
Prevent AI agents from touching critical files.
gates:
safety:
protected_paths:
- ".github/**"
- "rigour.yml"
- "*.lock"
max_files_changed_per_cycle: 10
2. Universal AST SME
Enable structural analysis for your specific language. Rigour automatically detects your language, but you can tune the expert logic:
gates:
ast:
complexity: 10 # Max Cognitive Load
max_function_lines: 50
3. Quality Handshake (SAST+DAST)
Bridge the gap between code structure and tests.
gates:
coverage:
risk_adjusted: true # Requires high coverage for complex code
Next Steps
- Full Reference - Complete schema specification.
- SME Cookbooks - Advanced patterns for Go, Python, and Java.
- CLI Commands - See all available commands.