@@ -7,20 +7,22 @@ creating an example lint from scratch.
77To get started, we will create a lint that detects functions called ` foo ` ,
88because that's clearly a non-descriptive name.
99
10- * [ Setup] ( #Setup )
11- * [ Testing] ( #Testing )
12- * [ Rustfix tests] ( #Rustfix-tests )
13- * [ Edition 2018 tests] ( #Edition-2018-tests )
14- * [ Lint declaration] ( #Lint-declaration )
15- * [ Lint passes] ( #Lint-passes )
16- * [ Emitting a lint] ( #Emitting-a-lint )
17- * [ Adding the lint logic] ( #Adding-the-lint-logic )
18- * [ Author lint] ( #Author-lint )
19- * [ Documentation] ( #Documentation )
20- * [ Running rustfmt] ( #Running-rustfmt )
21- * [ Debugging] ( #Debugging )
22- * [ PR Checklist] ( #PR-Checklist )
23- * [ Cheatsheet] ( #Cheatsheet )
10+ - [ Adding a new lint] ( #adding-a-new-lint )
11+ - [ Setup] ( #setup )
12+ - [ Testing] ( #testing )
13+ - [ Rustfix tests] ( #rustfix-tests )
14+ - [ Edition 2018 tests] ( #edition-2018-tests )
15+ - [ Testing manually] ( #testing-manually )
16+ - [ Lint declaration] ( #lint-declaration )
17+ - [ Lint passes] ( #lint-passes )
18+ - [ Emitting a lint] ( #emitting-a-lint )
19+ - [ Adding the lint logic] ( #adding-the-lint-logic )
20+ - [ Author lint] ( #author-lint )
21+ - [ Documentation] ( #documentation )
22+ - [ Running rustfmt] ( #running-rustfmt )
23+ - [ Debugging] ( #debugging )
24+ - [ PR Checklist] ( #pr-checklist )
25+ - [ Cheatsheet] ( #cheatsheet )
2426
2527### Setup
2628
@@ -309,7 +311,7 @@ If you have trouble implementing your lint, there is also the internal `author`
309311lint to generate Clippy code that detects the offending pattern. It does not
310312work for all of the Rust syntax, but can give a good starting point.
311313
312- The quickest way to use it, is the [ Rust playground] [ play ] .rust-lang.org) .
314+ The quickest way to use it, is the [ Rust playground: play.rust-lang.org] [ Play ] .
313315Put the code you want to lint into the editor and add the ` #[clippy::author] `
314316attribute above the item. Then run Clippy via ` Tools -> Clippy ` and you should
315317see the generated code in the output below.
0 commit comments