Add new Asm/C++/Java/Make warning patterns
* Change some incorrectly-classified logtags warnings to C++. * Fix gpylint warnings of long lines in html_writer.py. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I98c01dadfd72b202d81ef7c94e93c42182f6065c
This commit is contained in:
committed by
Chih-hung Hsieh
parent
54b437286b
commit
5d9ee04f56
@@ -328,7 +328,8 @@ def dump_fixed(writer, warn_patterns):
|
||||
cur_row_class = 1 - cur_row_class
|
||||
# remove last '\n'
|
||||
out_text = text[:-1] if text[-1] == '\n' else text
|
||||
writer('<tr><td class="c' + str(cur_row_class) + '">' + out_text + '</td></tr>')
|
||||
writer('<tr><td class="c' + str(cur_row_class) + '">'
|
||||
+ out_text + '</td></tr>')
|
||||
writer('</table></div>')
|
||||
writer('</blockquote>')
|
||||
|
||||
@@ -355,7 +356,8 @@ def dump_csv(csvwriter, warn_patterns):
|
||||
sort_warnings(warn_patterns)
|
||||
total = 0
|
||||
for severity in Severity.levels:
|
||||
total += write_severity(csvwriter, severity, severity.column_header, warn_patterns)
|
||||
total += write_severity(
|
||||
csvwriter, severity, severity.column_header, warn_patterns)
|
||||
csvwriter.writerow([total, '', 'All warnings'])
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user