then in file there is one line which broke htmlreport because is outside <xml></xml>
cppcheck:unusedFunctioncheckcan't be used with '-j'option.DisablingunusedFunctioncheck.<?xmlversion="1.0"encoding="UTF-8"?><resultsversion="2"><cppcheckversion="1.88"/><errors>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you only want the XML output then you have to only use the output to stderr.
But I suggest to use --output-file=errors.xml instead. IMHO that is more clean than catching some output.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm, maybe. All the other similar messages that are caused by invalid options directly quit Cppcheck with the error message. This specific error message is an exception, the analysis still starts and only this hint is printed. Adding this as a global error to the XML file could be useful.
Maybe @danielmarjamaki has an opinion about that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
that is different. currently it doesn't have file/line/column/severity/error id
somehow using information severity might work but well this is a different message.
maybe we can just print the message and stop cppcheck like when other options are wrong..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
When I create xml(in example Krita source code or Godot Engine)
then in file there is one line which broke htmlreport because is outside <xml></xml>
If you only want the XML output then you have to only use the output to stderr.
But I suggest to use
--output-file=errors.xml
instead. IMHO that is more clean than catching some output.Shouldn't
cppcheck: unusedFunction check can't be used with '-j' option. Disabling unusedFunction check.
be also added to xml file as error?Hmm, maybe. All the other similar messages that are caused by invalid options directly quit Cppcheck with the error message. This specific error message is an exception, the analysis still starts and only this hint is printed. Adding this as a global error to the XML file could be useful.
Maybe @danielmarjamaki has an opinion about that.
that is different. currently it doesn't have file/line/column/severity/error id
somehow using information severity might work but well this is a different message.
maybe we can just print the message and stop cppcheck like when other options are wrong..