Skip to content

Commit 5c90b90

Browse files
committed
Rust: Lower the thresholds in rust/diagnostic/database-quality to more pragmatic numbers.
1 parent 2c2b1e4 commit 5c90b90

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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
class DbQualityDiagnostic extends Unit {
1313
DbQualityDiagnostic() {
1414
exists(float percentageGood |
15-
CallTargetStatsReport::percentageOfOk(_, percentageGood)
15+
CallTargetStatsReport::percentageOfOk(_, percentageGood) and percentageGood < 50
1616
or
17-
MacroCallTargetStatsReport::percentageOfOk(_, percentageGood)
18-
|
19-
percentageGood < 95
17+
MacroCallTargetStatsReport::percentageOfOk(_, percentageGood) and percentageGood < 50
2018
)
2119
}
2220

0 commit comments

Comments
 (0)