Lines Matching full:warnings

47 #   Warnings:                 warning_records
67 # Report files with this number of warnings or more.
69 # Report files/directories with this percentage of total warnings or more.
142 """Creates warnings s.t.
144 warnings[p][s] is as specified in above docs.
151 2D warnings array where warnings[p][s] is # of warnings in project name p of
154 warnings = {p: {s.value: 0 for s in Severity.levels} for p in project_names}
158 warnings[project][value] += pattern['projects'][project]
159 return warnings
162 def get_total_by_project(warnings, project_names): argument
163 """Returns dict, project as key and # warnings for that project as value."""
165 p: sum(warnings[p][s.value] for s in Severity.levels)
170 def get_total_by_severity(warnings, project_names): argument
171 """Returns dict, severity as key and # warnings of that severity as value."""
173 s.value: sum(warnings[p][s.value] for p in project_names)
191 def emit_row_counts_per_project(warnings, total_by_project, total_by_severity, argument
193 """Returns total project warnings and row of stats for each project.
196 warnings: output of create_warnings(warn_patterns, project_names)
202 total_all_projects, the total number of warnings over all projects
204 total # warnings for this project]
214 one_row.append(warnings[p_name][severity.value])
249 """Dump a google chart table of warnings per project and severity."""
251 warnings = create_warnings(warn_patterns, project_names)
252 total_by_project = get_total_by_project(warnings, project_names)
253 total_by_severity = get_total_by_severity(warnings, project_names)
256 warnings, total_by_project, total_by_severity, project_names)
262 """Dump some stats about total number of warnings and date."""
275 writer('Number of classified warnings: <b>' + str(known) + '</b><br>')
276 writer('Number of skipped warnings: <b>' + str(skipped) + '</b><br>')
277 writer('Number of unclassified warnings: <b>' + str(unknown) + '</b><br>')
282 writer('Total number of warnings: <b>' + str(total) + '</b>' + extra_msg)
287 # New base table of warnings, [severity, warn_id, project, warning_message]
288 # Need buttons to show warnings in different grouping options.
300 'Expand all warnings</button>\n'
302 'Collapse all warnings</button>\n'
304 'Group warnings by severity</button>\n'
306 'Group warnings by project</button>')
318 """Show which warnings no longer occur."""
324 '&#x2295</button> Fixed warnings. '
347 """Count warnings of given severity and write CSV entries to writer."""
355 # print number of warnings for each project, ordered by project name
359 csvwriter.writerow([total, '', kind + ' warnings'])
364 """Dump number of warnings in CSV format to writer."""
370 csvwriter.writerow([total, '', 'All warnings'])
466 for (var i=0; i<Warnings.length; i++) {
467 var w = Warnings[i][0];
472 groups[s][k].push(Warnings[i]);
478 for (var i=0; i<Warnings.length; i++) {
479 var w = Warnings[i][0];
480 var p = Warnings[i][1];
484 groups[p][k].push(Warnings[i]);
636 emit_const_object_array('Warnings', warning_records, writer)
730 data.addColumn("number", "# of warnings");
761 data.addColumn('string', numWarnings + type + ' warnings in ' + name);
763 ? ((x) => addURLToLine(WarningMessages[Warnings[x][2]],
764 WarningLinks[Warnings[x][3]]))
765 : ((x) => addURL(WarningMessages[Warnings[x][2]]));
766 for (var i = 0; i < Warnings.length; i++) {
767 if ((prefix.startsWith("*") || WarningMessages[Warnings[i][2]].startsWith(prefix)) &&
768 (type == "" || WarningMessages[Warnings[i][2]].endsWith(type))) {
815 subsection_title = ('Warnings in <span id="selected_' + dir_file +
839 dump_html_prologue('Warnings for ' + header_str, writer, warn_patterns,
846 'Number of warnings in preselected project directories')
850 'Directories/Warnings with at least ' +
855 'Files/Warnings with at least ' +
865 'All warnings grouped by severities or projects')
885 """Write warnings html file."""
894 """Write warnings csv file."""