Closed mjeronimo closed 2 years ago
Looking at the source, the code does deliberately truncate the "type" field at the first space. That seems odd, but I don't remember the reason for doing so. I'll remove this and allow the full text of the "type" field to be carried forward, and if there was some reason for not doing so it no doubt will show up soon enough!
I updated the code, but left in a compiler directive in case the change turns out unwarranted later
Currently, when using the json_convert utility to convert from JSON to other output formats, the rule message text is getting truncated at the first space.
For example, the JSON entry like this:
Is getting converted to this SARIF output:
Where the string "(Required) #include directives in a file shall only be preceded by other pre-processor directives or comments." is getting truncated to "(Required)" in the output.
Signed-off-by: Michael Jeronimo michael.jeronimo@openrobotics.org