GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — codeql/java/ql/src/Telemetry/DatabaseQuality.qll at main · github/codeql Expand file tree/ Copy pathDatabaseQuality.qllMore file actions 39 lines (26 loc) · 1.17 KB / Copy pathDatabaseQuality.qllFile metadata and controls39 lines (26 loc) · 1.17 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 /** * Provides database quality statistics that are reported by java/telemetry/extractor-information * and perhaps warned about by java/diagnostics/database-quality. */ import java import codeql.util.ReportStats module CallTargetStats implements StatsSig { int getNumberOfOk() { result = count(Call c | exists(c.getCallee())) } int getNumberOfNotOk() { result = count(Call c | not exists(c.getCallee())) } string getOkText() { result = "calls with call target" } string getNotOkText() { result = "calls with missing call target" } } private class SourceExpr extends Expr { SourceExpr() { this.getFile().isSourceFile() } } private predicate hasGoodType(Expr e) { exists(e.getType()) and not e.getType() instanceof ErrorType } module ExprTypeStats implements StatsSig { int getNumberOfOk() { result = count(SourceExpr e | hasGoodType(e)) } int getNumberOfNotOk() { result = count(SourceExpr e | not hasGoodType(e)) } string getOkText() { result = "expressions with known type" } string getNotOkText() { result = "expressions with unknown type" } } module CallTargetStatsReport = ReportStats<CallTargetStats>; module ExprTypeStatsReport = ReportStats<ExprTypeStats>; |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |