MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / reportSummary

Function reportSummary

addons/cppcheckdata.py:1698–1706  ·  view source on GitHub ↗
(dumpfile, summary_type, summary_data)

Source from the content-addressed store, hash-verified

1696 EXIT_CODE = 1
1697
1698def reportSummary(dumpfile, summary_type, summary_data):
1699 msg = {'summary': summary_type, 'data': summary_data}
1700 if '--cli' in sys.argv:
1701 sys.stdout.write(json.dumps(msg) + '\n')
1702 else:
1703 # dumpfile ends with ".dump"
1704 ctu_info_file = dumpfile[:-4] + "ctu-info"
1705 with open(ctu_info_file, 'at') as f:
1706 f.write(json.dumps(msg) + '\n')
1707
1708
1709def get_path_premium_addon():

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected