C# Class Microsoft.CodeAnalysis.Sarif.Converters.SemmleConverter

Converts a log file from the Semmle format to the SARIF format.
Inheritance: ToolFileConverterBase
Afficher le fichier Open project: Microsoft/sarif-sdk

Méthodes publiques

Méthode Description
Convert ( Stream input, IResultLogWriter output ) : void

Converts a Semmle log file in CSV format to a SARIF log file.

Private Methods

Méthode Description
AddToolNotification ( string id, NotificationLevel level, string messageFormat ) : void
GetInteger ( string fields, FieldIndex fieldIndex ) : int
GetResultsFromStream ( Stream input ) : System.Result[]
GetString ( string fields, FieldIndex fieldIndex ) : string
MakeRegion ( string fields ) : Region

Create a Region object that contains only those properties required by the SARIF spec.

ParseResult ( ) : System.Result
ResultLevelFromSemmleSeverity ( string semmleSeverity ) : ResultLevel

Method Details

Convert() public méthode

Converts a Semmle log file in CSV format to a SARIF log file.
/// Thrown when one or more required arguments are null. ///
public Convert ( Stream input, IResultLogWriter output ) : void
input Stream /// Input stream from which to read the Semmle log. ///
output IResultLogWriter /// Output string to which to write the SARIF log. ///
Résultat void