File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 5050
5151 < div class ="container "> {# #}
5252 < div class ="page-header "> {# #}
53- < h1 > Clippy Lints</ h1 > {# #}
53+ < h1 > Clippy Lints < span id =" lint-count " class =" badge " > </ span > </ h1 > {# #}
5454 </ div > {# #}
5555
5656 < noscript > {# #}
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ window.searchState = {
7171 } else {
7272 window . location . hash = '' ;
7373 }
74+ updateLintCount ( ) ;
7475 } ,
7576} ;
7677
@@ -598,3 +599,14 @@ generateSearch();
598599parseURLFilters ( ) ;
599600scrollToLintByURL ( ) ;
600601filters . 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