Skip to content

Reporting flags: --report extension detection misses .markdown/.htm, --baseline silently ignored without --report #119

Description

@mcclowes

Found during a docs accuracy audit. Two related rough edges in src/cli/handlers/compile.ts:

  1. Report format detection (compile.ts:227-231) only special-cases .html and .mdreport.markdown or report.htm silently gets JSON content with a misleading extension. Consider recognising both aliases, or warning when the extension is unrecognised.

  2. --baseline is only read when --report is set (compile.ts:199-224). With --audit-log alone it is parsed and silently discarded. Consider erroring or warning when --baseline is passed without --report.

Docs (CLAUDE.md, README, docusaurus CLI page) have been updated to state the current behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions