Skip to content

Commit 45d6fc0

Browse files
authored
Merge pull request #20312 from geoffw0/dbquality
Rust: Tune rust/diagnostic/database-quality
2 parents f89fae3 + 9e0a31c commit 45d6fc0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: fix
3+
---
4+
* The "Low Rust analysis quality" query (`rust/diagnostic/database-quality`) has been tuned so that it won't trigger on databases that have extracted normally. This will remove spurious messages of "Low Rust analysis quality" on the CodeQL status page.

‎rust/ql/src/queries/telemetry/DatabaseQualityDiagnostics.ql‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ import codeql.util.Unit
1212
classDbQualityDiagnosticextendsUnit{
1313
DbQualityDiagnostic(){
1414
exists(floatpercentageGood|
15-
CallTargetStatsReport::percentageOfOk(_,percentageGood)
15+
CallTargetStatsReport::percentageOfOk(_,percentageGood)andpercentageGood<50
1616
or
17-
MacroCallTargetStatsReport::percentageOfOk(_,percentageGood)
18-
|
19-
percentageGood<95
17+
MacroCallTargetStatsReport::percentageOfOk(_,percentageGood)andpercentageGood<50
2018
)
2119
}
2220

0 commit comments

Comments
(0)