mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-10 06:41:30 +11:00
rustdoc checks to github actions
This commit is contained in:
parent
25e99a4133
commit
ca89140ebe
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
|
@ -26,6 +26,8 @@ jobs:
|
||||||
|
|
||||||
- name: Validate formatting
|
- name: Validate formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
- name: Validate documentation
|
||||||
|
run: cargo +stable doc --no-deps --all-features --workspace --document-private-items
|
||||||
- name: Run clippy lints
|
- name: Run clippy lints
|
||||||
run: cargo +stable clippy --no-deps --all-features --all-targets -- -D warnings
|
run: cargo +stable clippy --no-deps --all-features --all-targets -- -D warnings
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|
|
@ -66,6 +66,15 @@
|
||||||
html_favicon_url = "https://raw.githubusercontent.com/valence-rs/valence/main/assets/logo.svg"
|
html_favicon_url = "https://raw.githubusercontent.com/valence-rs/valence/main/assets/logo.svg"
|
||||||
)]
|
)]
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
|
// Deny these to make CI checks fail. TODO: invalid_html_tags
|
||||||
|
#![deny(
|
||||||
|
rustdoc::broken_intra_doc_links,
|
||||||
|
rustdoc::private_intra_doc_links,
|
||||||
|
rustdoc::missing_crate_level_docs,
|
||||||
|
rustdoc::invalid_codeblock_attributes,
|
||||||
|
rustdoc::invalid_rust_codeblocks,
|
||||||
|
rustdoc::bare_urls,
|
||||||
|
)]
|
||||||
#![warn(
|
#![warn(
|
||||||
trivial_casts,
|
trivial_casts,
|
||||||
trivial_numeric_casts,
|
trivial_numeric_casts,
|
||||||
|
|
Loading…
Reference in a new issue