Restrictions

Restriction: Configuration files under version control RE_SCL_CONFIG_IN_SCOPE
style: orange_bar

All Sphinx-CodeLinks configuration files (e.g., .codelinks.toml, Sphinx conf.py sections) must be placed under version control in the documented project scope.

This ensures:

  • Custom comment styles are explicitly documented and tracked

  • Root directory configurations are versioned and auditable

  • Configuration changes are reviewed and traceable

This mitigates:

  • FAULT_SCL_CMT: Configuration defines which comment styles are supported; versioned config prevents undocumented style changes

  • FAULT_SCL_CLI_DISCOVER_1: Root directory paths are documented in versioned config, making failures traceable

Restriction: Sphinx warnings break the build RE_SCL_WARNINGS_BREAK_BUILD
style: orange_bar

The Sphinx build process must be configured with -W (warnings as errors) or -n (nitpick mode) to ensure any warnings from Sphinx-CodeLinks cause build failure.

This enforces:

  • Missing or undetected traceability objects trigger warnings → build fails

  • Incomplete content analysis is immediately visible

  • Zero tolerance for extraction issues

This mitigates:

  • FAULT_SCL_1: Undetected traceability objects cause Sphinx-CodeLinks to emit warnings about missing references

  • FAULT_SCL_CLI_ANALYZE_3: Missed content results in incomplete need extraction, triggering warnings when referenced in documentation