Lines Matching full:bug
35 for bug in read_bugs(args.output, html_reports_available):
36 bug_counter(bug)
117 """ Bug summary is a HTML table to give a better overview of the bugs. """
123 |<h2>Bug Summary</h2>
127 | <td>Bug Type</td>
172 bugs = (pretty(bug) for bug in read_bugs(output_dir, True))
182 | <td>Bug Group</td>
184 | Bug Type
273 lambda bug: '{bug_line}.{bug_path_length}:{bug_file}'.format(**bug))
282 for bug in parser(bug_file):
283 if not duplicate(bug):
284 yield bug
385 for bug in content.get('diagnostics', []):
386 if len(files) <= int(bug['location']['file']):
387 logging.warning('Parsing bug from "%s" failed', filename)
392 'bug_type': bug['type'],
393 'bug_category': bug['category'],
394 'bug_line': int(bug['location']['line']),
395 'bug_path_length': int(bug['location']['col']),
396 'bug_file': files[int(bug['location']['file'])]
401 """ Parse out the bug information from HTML output. """
412 bug = {
429 bug.update(match.groupdict())
432 encode_value(bug, 'bug_line', int)
433 encode_value(bug, 'bug_path_length', int)
435 yield bug
455 def category_type_name(bug): argument
456 """ Create a new bug attribute from bug by category and type.
463 return bug.get(key, '').lower().replace(' ', '_').replace("'", '')
469 """ Create counters for bug statistics.
472 number of bugs. The 'categories' is a two level categorisation of bug
473 counters. The first level is 'bug category' the second is 'bug type'.
477 def predicate(bug): argument
478 bug_category = bug['bug_category']
479 bug_type = bug['bug_type']
483 'bug_type_class': category_type_name(bug),
497 def predicate(bug): argument
500 bug['bug_type_class'] = category_type_name(bug)
502 encode_value(bug, 'bug_file', lambda x: escape(chop(prefix, x)))
503 encode_value(bug, 'bug_category', escape)
504 encode_value(bug, 'bug_type', escape)
505 encode_value(bug, 'report_file', lambda x: escape(chop(output_dir, x)))
506 return bug