Lines Matching refs:s
146 warnings = {p: {s.value: 0 for s in Severity.levels} for p in project_names}
148 s = i['severity'].value
150 warnings[p][s] += i['projects'][p]
158 p: sum(warnings[p][s.value] for s in Severity.levels)
167 s.value: sum(warnings[p][s.value] for p in project_names)
168 for s in Severity.levels
176 for s in Severity.levels:
177 if total_by_severity[s.value]:
180 s.color, s.column_header))
206 for s in Severity.levels:
207 if total_by_severity[s.value]:
208 one_row.append(warnings[p][s.value])
229 for s in Severity.levels:
230 if total_by_severity[s.value]:
231 one_row.append(total_by_severity[s.value])
232 total_all_severities += total_by_severity[s.value]
357 for s in Severity.levels:
358 total += write_severity(csvwriter, s, s.column_header, warn_patterns)
363 def escape_string(s): argument
364 return s.replace('\\', '\\\\').replace('"', '\\"')
368 def strip_escape_string(s): argument
369 if not s:
370 return s
371 s = s[:-1] if s[-1] == '\n' else s
372 return escape_string(s)
557 for s in array:
558 writer('"' + strip_escape_string(s) + '",')
565 for s in array:
569 writer('"' + cgi.escape(strip_escape_string(s)) + '",')
587 emit_const_string_array('SeverityColors', [s.color for s in Severity.levels],
590 [s.header for s in Severity.levels], writer)
592 [s.column_header for s in Severity.levels], writer)