Skip to content

Commit 77c4e73

Browse files
committed
add fix
1 parent 7068c3a commit 77c4e73

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎htmlreport/cppcheck-htmlreport‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,9 @@ class CppCheckHandler(XmlContentHandler):
709709
error = self.errors[-1]
710710
locations = error['locations']
711711
file = attributes['file']
712+
# Cppcheck Premium reports license messages with this pseudo file name
713+
if file == 'Cppcheck Premium':
714+
file = ''
712715
line = int(attributes['line'])
713716
if not locations:
714717
error['file'] = file

0 commit comments

Comments
 (0)