Merge pull request #21347 from geoffw0/toolstatus

Rust: Update rust/diagnostic/database-quality
This commit is contained in:
Geoffrey White
2026-02-20 09:16:44 +00:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* The macro resolution metric has been removed from `rust/diagnostic/database-quality`. This metric was found to be an unreliable indicator of database quality in many cases, leading to false alarms on the tool status page.

View File

@@ -12,8 +12,6 @@ import codeql.util.Unit
private predicate diagnostic(string msg, float value, float threshold) {
CallTargetStatsReport::percentageOfOk(msg, value) and threshold = 50
or
MacroCallTargetStatsReport::percentageOfOk(msg, value) and threshold = 50
or
ExprTypeStatsReport::percentageOfOk(msg, value) and threshold = 20
}