Open yane3628 opened 2 weeks ago
When using GetMessageText in SarifExtensionMethods, I am getting "System.FormatException: Input string was not in a correct format". It seems that this is being thrown by string.Format in GetFormattedMessage.
The value for formatString should escape any curly braces that are not in the format {int} to avoid this error.
formatString
{int}
See Remarks for string.Format
According to [SARIF-v2.1.0-Errata01] §3.11.5 Messages with placeholders, the SARIF producer shall double the curly braces.
When using GetMessageText in SarifExtensionMethods, I am getting "System.FormatException: Input string was not in a correct format". It seems that this is being thrown by string.Format in GetFormattedMessage.
The value for
formatString
should escape any curly braces that are not in the format{int}
to avoid this error.See Remarks for string.Format