You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add --show-policy-docs-link flag for validation output
Give users control over policy documentation links in validation reports.
Defaults to false to keep demo output clean—production CI can opt in with
--show-policy-docs-link=true when they want the help link.
Why default to false? Your colleague nailed it: "for demos it's better if
the default is false, otherwise every example needs to include the flag."
Nobody wants documentation URLs cluttering their quick validation examples.
Implementation:
- Added persistent flag on parent validate command (all subcommands inherit)
- Flag controls display of https://conforma.dev/docs/policy/ link
- Link only appears when violations/warnings exist
- Updated tests to properly initialize flags
- Report structures updated to pass flag through
Usage:
# Default - clean output for demos
ec validate image --image <img> --policy <policy>
# Opt-in for production/CI
ec validate image --image <img> --policy <policy> --show-policy-docs-link=true
Note: Snapshot updates will be handled in a separate PR to keep this focused.
resolves: EC-1603
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
validateCmd.PersistentFlags().Bool("show-policy-docs-link", false, "Show link to policy documentation in output when there are violations or warnings")
0 commit comments