File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 102102 minimum_pre_commit_version : 0.15.0
103103 description : ' Run cargo fmt in the repo root'
104104
105+ - id : rust-doc
106+ name : ' Cargo doc'
107+ entry : run-rust-doc.sh
108+ language : ' script'
109+ files : \.rs$
110+ pass_filenames : false
111+ minimum_pre_commit_version : 0.15.0
112+ description : ' Run cargo doc against public & private items'
113+
105114- id : r-stylr
106115 name : ' Format with stylr'
107116 entry : run-r-stylr.R
Original file line number Diff line number Diff line change 1616* ` rust-clippy ` : runs ` cargo clippy ` lints in the repo root
1717* ` rust-test ` : runs ` cargo test ` at the repo root, includes all targets/features/examples/benches
1818* ` rust-fmt ` : runs ` cargo fmt --all `
19+ * ` rust-doc ` : runs ` cargo doc ` against the workspace - great for linting [ intra-doc links]
1920* ` r-stylr ` : runs [ ` stylr ` ] to format R code
2021* ` r-lintr ` : static analysis of R code with [ ` lintr ` ]
2122* ` buf-lint ` : runs [ ` buf ` ] lints against protobuf files
7879 - id : rust-fmt
7980 stages : [commit, push]
8081
82+ - id : rust-doc
83+ stages : [push]
84+
8185 - id : r-stylr
8286 stages : [commit, push]
8387
@@ -141,4 +145,5 @@ When adding new hooks you can run `pre-commit try-repo .` for a quick syntax che
141145[`post-checkout`] : https://git-scm.com/docs/githooks#_post_checkout
142146[`stylr`] : https://styler.r-lib.org/
143147[`lintr`] : https://github.com/jimhester/lintr
144- [`buf`] : https://buf.build/
148+ [`buf`] : https://buf.build/
149+ [intra-doc links] : https://doc.rust-lang.org/rustdoc/lints.html#broken_intra_doc_links
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ # Requires:
6+ #! [deny(broken_intra_doc_links)]
7+ cargo doc --no-deps --all-features --workspace --document-private-items
You can’t perform that action at this time.
0 commit comments