Skip to content

Commit 466e0fb

Browse files
authored
Do not count deprecated lints in lint total (#14948)
In order to be consistent with our documentation, deprecated lints should not be counted when displaying the total number of lints on the [web site](https://rust-lang.github.io/rust-clippy/master/index.html). For example, as of 2025-06-01, there are 784 non-deprecated lints which are referred to as "over 750 lints" in the documentation, but the web site displays "Total number: 799". When one new lint will be added, there will be a discrepancy ("over 750 lints" vs. "Total number: 800") if this is not fixed. changelog: none r? @llogiq
2 parents 3f48a2b + d4aed51 commit 466e0fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/gh-pages/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ filters.filterLints();
602602
updateLintCount();
603603

604604
function updateLintCount() {
605-
const allLints = filters.getAllLints();
605+
const allLints = filters.getAllLints().filter(lint => lint.group != "deprecated");
606606
const totalLints = allLints.length;
607607

608608
const countElement = document.getElementById("lint-count");

0 commit comments

Comments
 (0)