Skip to content

Configuration Reference

This project loads configuration from zen-config.yaml in the current working directory or the first parent directory that contains pyproject.toml.

Generated by python scripts/generate_config_docs.py. Do not edit manually.

Analyzer Defaults (auto-generated)

  • max_cyclomatic_complexity: int (default: 10)
  • max_nesting_depth: int (default: 3)
  • max_function_length: int (default: 50)
  • max_class_length: int (default: 300)
  • max_magic_methods: int (default: 3)
  • severity_threshold: int (default: 5)
  • enable_dependency_analysis: bool (default: True)
  • enable_pattern_detection: bool (default: True)

Notes

  • Detector metrics must match detector config field names exactly (strict projection).
  • Unknown metrics keys in rules will raise a validation error during pipeline construction.
  • Language module folders are expected to include __init__.py, analyzer.py, detectors.py, mapping.py, and rules.py.