【问题标题】:CPPcheck html reportCPPcheck html 报告
【发布时间】:2015-06-21 00:51:09
【问题描述】:

我有一个问题,有没有办法使用 cppcheck-htmlreport 从几个 xml 生成一个 html 文件?

通常我会这样做:

/cppcheck-htmlreport --file /vobs/stn/dev/linux/cppcheck/xmlreport_v1.xml --title "xml1 test" --report-dir .

现在我想做这样的事情

/cppcheck-htmlreport --file /vobs/stn/dev/linux/cppcheck/*.xml --title "xml1 test" --report-dir .

但是当我这样做时,推荐 cppcheck 只转换一个 xml 文件...

谁能帮帮我?

对不起,我的英语不好。

【问题讨论】:

标签: xml linux static-code-analysis cppcheck


【解决方案1】:

你试过了吗

cat *.xml >> newXmlFile.xml

在调用 cppcheck-htmlreport 之前? cat 命令将当前文件夹中所有 xml 文件的 xml 内容连接起来,并将结果存储到 newXmlFile.xml 中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-24
    • 1970-01-01
    • 2020-02-17
    • 2012-11-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多