This example demonstrates vallm's basic Python code validation capabilities using the default pipeline (Tier 1 & 2 validators).
- Syntax validation: Checks for Python syntax errors
- Import validation: Validates import statements and dependencies
- Complexity validation: Analyzes code complexity and identifies overly complex structures
The example validates three different code samples:
- Good code - Clean Fibonacci implementation (should PASS)
- Bad code - Contains syntax error (should FAIL)
- Complex code - Deeply nested conditional structure (should get warnings)
cd 01_basic_validation
python main.py- Validation verdict (PASS/FAIL/WARNING)
- Weighted score (0.0-1.0)
- Individual validator scores
- Detailed issues found (if any)
After running, analysis results will be saved in the .vallm/ folder within this directory, including:
- Validation reports
- Score breakdowns
- Issue details