@@ -7,20 +7,22 @@ creating an example lint from scratch.
7
7
To get started, we will create a lint that detects functions called ` foo ` ,
8
8
because that's clearly a non-descriptive name.
9
9
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 )
24
26
25
27
### Setup
26
28
@@ -309,7 +311,7 @@ If you have trouble implementing your lint, there is also the internal `author`
309
311
lint to generate Clippy code that detects the offending pattern. It does not
310
312
work for all of the Rust syntax, but can give a good starting point.
311
313
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 ] .
313
315
Put the code you want to lint into the editor and add the ` #[clippy::author] `
314
316
attribute above the item. Then run Clippy via ` Tools -> Clippy ` and you should
315
317
see the generated code in the output below.
0 commit comments