Skip to content

Commit

Permalink
Merge pull request #1416 from csordasmarton/fix-cmd-sum-filter
Browse files Browse the repository at this point in the history
Filter cmd line checker statistics
  • Loading branch information
gyorb authored Mar 8, 2018
2 parents a300c69 + df20ca1 commit 6e825a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libcodechecker/cmd/cmd_line_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,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,
Expand All @@ -659,6 +660,7 @@ def checker_count(checker_dict, key):

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,
Expand All @@ -685,6 +687,8 @@ def checker_count(checker_dict, key):
# 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
Expand Down

0 comments on commit 6e825a0

Please sign in to comment.