Update cppcheck-htmlreport (#1858)

Line 632 generates 5 <td>, so there is no point in restricting to colspan='4' everywhere else.
Use the full width available.
This commit is contained in:
tititiou36 2019-05-30 10:37:52 +02:00 committed by Daniel Marjamäki
parent 3cdc236e10
commit 40f76b9bc0
1 changed files with 6 additions and 6 deletions

View File

@ -525,8 +525,8 @@ if __name__ == '__main__':
lexer = guess_lexer_for_filename(source_filename, '')
except:
sys.stderr.write("ERROR: Couldn't determine lexer for the file' " + source_filename + " '. Won't be able to syntax highlight this file.")
output_file.write("\n <tr><td colspan='4'> Could not generated content because pygments failed to retrieve the determine code type.</td></tr>")
output_file.write("\n <tr><td colspan='4'> Sorry about this.</td></tr>")
output_file.write("\n <tr><td colspan='5'> Could not generated content because pygments failed to retrieve the determine code type.</td></tr>")
output_file.write("\n <tr><td colspan='5'> Sorry about this.</td></tr>")
continue
if options.source_encoding:
@ -589,16 +589,16 @@ if __name__ == '__main__':
' <tr><th>Line</th><th>Id</th><th>CWE</th><th>Severity</th><th>Message</th></tr>')
for filename, data in sorted(files.items()):
if filename in decode_errors: # don't print a link but a note
output_file.write("\n <tr><td colspan='4'>%s</td></tr>" % (filename))
output_file.write("\n <tr><td colspan='4'> Could not generated due to UnicodeDecodeError</td></tr>")
output_file.write("\n <tr><td colspan='5'>%s</td></tr>" % (filename))
output_file.write("\n <tr><td colspan='5'> Could not generated due to UnicodeDecodeError</td></tr>")
else:
if filename.endswith('*'): # assume unmatched suppression
output_file.write(
"\n <tr><td colspan='4'>%s</td></tr>" %
"\n <tr><td colspan='5'>%s</td></tr>" %
(filename))
else:
output_file.write(
"\n <tr><td colspan='4'><a href='%s'>%s</a></td></tr>" %
"\n <tr><td colspan='5'><a href='%s'>%s</a></td></tr>" %
(data['htmlfile'], filename))
for error in sorted(data['errors'], key=lambda k: k['line']):