Skip to content

Commit

Permalink
Merge pull request #15432 from tamasvajk/fix/extraction-information
Browse files Browse the repository at this point in the history
C#: Filter results of division by 0 from `cs/telemetry/extraction-information`
  • Loading branch information
tamasvajk authored Jan 25, 2024
2 parents 01b8950 + 055ead2 commit 2333b8d
Showing 1 changed file with 33 additions and 25 deletions.
58 changes: 33 additions & 25 deletions csharp/ql/src/Telemetry/ExtractorInformation.ql
Original file line number Diff line number Diff line change
Expand Up @@ -167,29 +167,37 @@ module ExprStatsReport = ReportStats<ExprStats>;

from string key, float value
where
fileCount(key, value) or
fileCountByExtension(key, value) or
totalNumberOfLines(key, value) or
numberOfLinesOfCode(key, value) or
totalNumberOfLinesByExtension(key, value) or
numberOfLinesOfCodeByExtension(key, value) or
extractorDiagnostics(key, value) or
numberOfAmbiguityCompilerErrors(key, value) or
numberOfDistinctAmbiguityCompilerErrorMessages(key, value) or
extractionIsStandalone(key, value) or
CallTargetStatsReport::numberOfOk(key, value) or
CallTargetStatsReport::numberOfNotOk(key, value) or
CallTargetStatsReport::percentageOfOk(key, value) or
ExprTypeStatsReport::numberOfOk(key, value) or
ExprTypeStatsReport::numberOfNotOk(key, value) or
ExprTypeStatsReport::percentageOfOk(key, value) or
TypeMentionTypeStatsReport::numberOfOk(key, value) or
TypeMentionTypeStatsReport::numberOfNotOk(key, value) or
TypeMentionTypeStatsReport::percentageOfOk(key, value) or
AccessTargetStatsReport::numberOfOk(key, value) or
AccessTargetStatsReport::numberOfNotOk(key, value) or
AccessTargetStatsReport::percentageOfOk(key, value) or
ExprStatsReport::numberOfOk(key, value) or
ExprStatsReport::numberOfNotOk(key, value) or
ExprStatsReport::percentageOfOk(key, value)
(
fileCount(key, value) or
fileCountByExtension(key, value) or
totalNumberOfLines(key, value) or
numberOfLinesOfCode(key, value) or
totalNumberOfLinesByExtension(key, value) or
numberOfLinesOfCodeByExtension(key, value) or
extractorDiagnostics(key, value) or
numberOfAmbiguityCompilerErrors(key, value) or
numberOfDistinctAmbiguityCompilerErrorMessages(key, value) or
extractionIsStandalone(key, value) or
CallTargetStatsReport::numberOfOk(key, value) or
CallTargetStatsReport::numberOfNotOk(key, value) or
CallTargetStatsReport::percentageOfOk(key, value) or
ExprTypeStatsReport::numberOfOk(key, value) or
ExprTypeStatsReport::numberOfNotOk(key, value) or
ExprTypeStatsReport::percentageOfOk(key, value) or
TypeMentionTypeStatsReport::numberOfOk(key, value) or
TypeMentionTypeStatsReport::numberOfNotOk(key, value) or
TypeMentionTypeStatsReport::percentageOfOk(key, value) or
AccessTargetStatsReport::numberOfOk(key, value) or
AccessTargetStatsReport::numberOfNotOk(key, value) or
AccessTargetStatsReport::percentageOfOk(key, value) or
ExprStatsReport::numberOfOk(key, value) or
ExprStatsReport::numberOfNotOk(key, value) or
ExprStatsReport::percentageOfOk(key, value)
) and
/* Infinity */
value != 1.0 / 0.0 and
/* -Infinity */
value != -1.0 / 0.0 and
/* NaN */
value != 0.0 / 0.0
select key, value

0 comments on commit 2333b8d

Please sign in to comment.