Filter cmd line checker statistics
@@ -639,6 +639,7 @@ def handle_list_result_types(args):
def get_statistics(client, run_ids, field, values):
report_filter = ttypes.ReportFilter()
report_filter.isUnique = True
+ add_filter_conditions(report_filter, args.filter)
setattr(report_filter, field, values)
checkers = client.getCheckerCounts(run_ids,
report_filter,
@@ -662,6 +663,7 @@ def handle_list_result_types(args):
all_checkers_report_filter = ttypes.ReportFilter()
all_checkers_report_filter.isUnique = True
+ add_filter_conditions(all_checkers_report_filter, args.filter)
all_checkers = client.getCheckerCounts(run_ids,
all_checkers_report_filter,
@@ -688,6 +690,8 @@ def handle_list_result_types(args):
# Get severity counts
report_filter = ttypes.ReportFilter()
report_filter.isUnique = True
+ add_filter_conditions(report_filter, args.filter)
+
sev_count = client.getSeverityCounts(run_ids, report_filter, None)
severities = []
severity_total = 0
