mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
Merge pull request #15783 from github/smowton/fix/extractor-information-fractional-percentage
Java: extractor information: tolerate fractional percentages
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
| Number of lines of code | 7 |
|
||||
| Number of lines of code with extension java | 7 |
|
||||
| Percentage of calls with call target | 20 |
|
||||
| Percentage of expressions with known type | 14 |
|
||||
| Total number of diagnostics from CodeQL Java extractor | 12 |
|
||||
| Total number of lines | 13 |
|
||||
| Total number of lines with extension java | 13 |
|
||||
|
||||
@@ -159,9 +159,9 @@ where
|
||||
extractorTotalDiagnostics(key, value) or
|
||||
CallTargetStatsReport::numberOfOk(key, value) or
|
||||
CallTargetStatsReport::numberOfNotOk(key, value) or
|
||||
CallTargetStatsReport::percentageOfOk(key, value) or
|
||||
CallTargetStatsReport::percentageOfOk(key, any(float x | value = x.floor())) or
|
||||
ExprTypeStatsReport::numberOfOk(key, value) or
|
||||
ExprTypeStatsReport::numberOfNotOk(key, value) or
|
||||
ExprTypeStatsReport::percentageOfOk(key, value)
|
||||
ExprTypeStatsReport::percentageOfOk(key, any(float x | value = x.floor()))
|
||||
)
|
||||
select key, value
|
||||
|
||||
Reference in New Issue
Block a user