Skip to content

Add --strict/-W flag to codelinks analyse command for treating warnings as errors #90

Description

@m-anderson1313

Feature Request

Add a command-line flag (e.g., --strict or -W) to codelinks analyse that converts
all warnings into build failures, similar to sphinx-build's -W flag.

Use Case

When integrating codelinks into CI/CD pipelines, warnings should fail the build to
enforce traceability quality gates. Currently, warnings are printed but do not cause
non-zero exit codes, allowing broken markers to pass automated checks.

Current Workaround

I've implemented a grep search to check the log for warnings, and fail the process if warning is found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions