File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
A collection of lints to catch common mistakes and improve your [ Rust] ( https://github.com/rust-lang/rust ) code.
6
6
7
- [ There are over 750 lints included in this crate!] ( https://rust-lang.github.io/rust-clippy/master/index.html )
7
+ [ There are over 790 lints included in this crate!] ( https://rust-lang.github.io/rust-clippy/master/index.html )
8
8
9
9
Lints are divided into categories, each with a default [ lint level] ( https://doc.rust-lang.org/rustc/lints/levels.html ) .
10
10
You can choose how much Clippy is supposed to ~~ annoy~~ help you by changing the lint level by category.
Original file line number Diff line number Diff line change 5
5
A collection of lints to catch common mistakes and improve your
6
6
[ Rust] ( https://github.com/rust-lang/rust ) code.
7
7
8
- [ There are over 750 lints included in this crate!] ( https://rust-lang.github.io/rust-clippy/master/index.html )
8
+ [ There are over 790 lints included in this crate!] ( https://rust-lang.github.io/rust-clippy/master/index.html )
9
9
10
10
Lints are divided into categories, each with a default [ lint
11
11
level] ( https://doc.rust-lang.org/rustc/lints/levels.html ) . You can choose how
Original file line number Diff line number Diff line change 50
50
51
51
< div class ="container "> {# #}
52
52
< div class ="page-header "> {# #}
53
- < h1 > Clippy Lints</ h1 > {# #}
53
+ < h1 > Clippy Lints < span id =" lint-count " class =" badge " > </ span > </ h1 > {# #}
54
54
</ div > {# #}
55
55
56
56
< noscript > {# #}
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ window.searchState = {
71
71
} else {
72
72
window . location . hash = '' ;
73
73
}
74
+ updateLintCount ( ) ;
74
75
} ,
75
76
} ;
76
77
@@ -598,3 +599,14 @@ generateSearch();
598
599
parseURLFilters ( ) ;
599
600
scrollToLintByURL ( ) ;
600
601
filters . filterLints ( ) ;
602
+ updateLintCount ( ) ;
603
+
604
+ function updateLintCount ( ) {
605
+ const allLints = filters . getAllLints ( ) ;
606
+ const totalLints = allLints . length ;
607
+
608
+ const countElement = document . getElementById ( "lint-count" ) ;
609
+ if ( countElement ) {
610
+ countElement . innerText = `Total number: ${ totalLints } ` ;
611
+ }
612
+ }
You can’t perform that action at this time.
0 commit comments