Skip to content

Commit b7939f4

Browse files
committed
Auto merge of #10720 - SergenKaraoglan:personal, r=flip1995
run linkcheck in clippy ci fixes #10711 changelog: Run [linkcheck.sh](https://github.com/rust-lang/rust/blob/master/src/tools/linkchecker/linkcheck.sh) from rustc repo in Remark.yml to check Clippy book.
2 parents 990bbdc + d1f55e6 commit b7939f4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/remark.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636
- name: Check *.md files
3737
run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null
3838

39+
- name: Linkcheck book
40+
run: |
41+
rustup toolchain install nightly --component rust-docs
42+
curl https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh -o linkcheck.sh
43+
sh linkcheck.sh clippy --path ./book
44+
3945
- name: Build mdbook
4046
run: mdbook build book
4147

book/src/development/lint_passes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ questions already, but the parser is okay with it. This is what we
5050
mean when we say `EarlyLintPass` deals with only syntax on the AST level.
5151

5252
Alternatively, think of the `foo_functions` lint we mentioned in
53-
[define new lints](define_lints.md#name-the-lint) chapter.
53+
define new lints <!-- FIXME: add link --> chapter.
5454

5555
We want the `foo_functions` lint to detect functions with `foo` as their name.
5656
Writing a lint that only checks for the name of a function means that we only

0 commit comments

Comments
 (0)