mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Merge pull request #20312 from geoffw0/dbquality
Rust: Tune rust/diagnostic/database-quality
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: fix
|
||||
---
|
||||
* 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.
|
||||
@@ -12,11 +12,9 @@ import codeql.util.Unit
|
||||
class DbQualityDiagnostic extends Unit {
|
||||
DbQualityDiagnostic() {
|
||||
exists(float percentageGood |
|
||||
CallTargetStatsReport::percentageOfOk(_, percentageGood)
|
||||
CallTargetStatsReport::percentageOfOk(_, percentageGood) and percentageGood < 50
|
||||
or
|
||||
MacroCallTargetStatsReport::percentageOfOk(_, percentageGood)
|
||||
|
|
||||
percentageGood < 95
|
||||
MacroCallTargetStatsReport::percentageOfOk(_, percentageGood) and percentageGood < 50
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user