Skip to content

Commit 275c1dd

Browse files
committed
ci: Treat rustdoc warnings as errors in validate target
Broaden the existing 'cargo doc --lib' in the Makefile validate target to '--workspace --no-deps --document-private-items' and set RUSTDOCFLAGS='-D warnings' so that any rustdoc warnings (broken links, unclosed HTML tags, bare URLs, etc.) will fail CI. Assisted-by: OpenCode (claude-opus-4-6) Signed-off-by: John Eckersberg <jeckersb@redhat.com>
1 parent 272fde0 commit 275c1dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ validate:
123123
(cd crates/ostree-ext && cargo check --no-default-features)
124124
(cd crates/lib && cargo check --no-default-features)
125125
cargo clippy -- $(CLIPPY_CONFIG)
126-
env RUSTDOCFLAGS='-D warnings' cargo doc --lib
126+
env RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps --document-private-items
127127
.PHONY: validate
128128
fix-rust:
129129
cargo clippy --fix --allow-dirty -- $(CLIPPY_CONFIG)

0 commit comments

Comments
 (0)