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

A Fortify result element.
Afficher le fichier Open project: Microsoft/sarif-sdk Class Usage Examples

Méthodes publiques

Свойство Type Description
Abstract string
AbstractCustom string
Category string
CweIds ImmutableArray
InstanceId string
Kingdom string
PrimaryOrSink FortifyPathElement
Priority string
RuleId string
Source FortifyPathElement

Méthodes publiques

Méthode Description
FortifyIssue ( string ruleId, string iid, string category, string kingdom, string abs, string abstractCustom, string priority, FortifyPathElement primaryOrSink, FortifyPathElement source, ImmutableArray cweIds ) : System

Initializes a new instance of the FortifyIssue class.

Parse ( XmlReader xmlReader, FortifyStrings strings ) : FortifyIssue

Parses a Fortify Result element from an XmlReader.

ParseCweIds ( string cweIdSource ) : ImmutableArray

Converts the CWE ID format from Fortify to a plain list of integers.

Method Details

FortifyIssue() public méthode

Initializes a new instance of the FortifyIssue class.
public FortifyIssue ( string ruleId, string iid, string category, string kingdom, string abs, string abstractCustom, string priority, FortifyPathElement primaryOrSink, FortifyPathElement source, ImmutableArray cweIds ) : System
ruleId string The Rule ID stored in the Fortify result.
iid string The Instance ID stored in the Fortify result.
category string The category of Fortify result.
kingdom string The kingdom of the Fortify result.
abs string The abstract (description) message of the Fortify result if present; otherwise, null.
abstractCustom string A custom user-provided abstract (description) message of the Fortify result if it is present; /// otherwise, null.
priority string The "friority" (which appears to be an intentional misspelling of "priority") of the Fortify /// result if present; otherwise, null.
primaryOrSink FortifyPathElement The primary location for the Fortify result; this will be the sink for data flow rules.
source FortifyPathElement Source for the flagged data flow if present; otherwise, null.
cweIds ImmutableArray List of CWE IDs stapled to the Fortify result, if present.
Résultat System

Parse() public static méthode

Parses a Fortify Result element from an XmlReader.
public static Parse ( XmlReader xmlReader, FortifyStrings strings ) : FortifyIssue
xmlReader System.Xml.XmlReader The from which an element containing a Fortify result shall be /// consumed. When this method returns, this is positioned on the following element.
strings FortifyStrings Strings used in processing a Fortify report.
Résultat FortifyIssue

ParseCweIds() public static méthode

Converts the CWE ID format from Fortify to a plain list of integers.
public static ParseCweIds ( string cweIdSource ) : ImmutableArray
cweIdSource string The string from which CWE IDs shall be parsed.
Résultat ImmutableArray

Property Details

Abstract public_oe property

The abstract (description) message of the Fortify result if present; otherwise, null.
public string Abstract
Résultat string

AbstractCustom public_oe property

A custom user-provided abstract (description) message of the Fortify result if it is present; otherwise, null.
public string AbstractCustom
Résultat string

Category public_oe property

The category of Fortify result.
public string Category
Résultat string

CweIds public_oe property

List of CWE IDs stapled to the Fortify result, if present.
public ImmutableArray CweIds
Résultat ImmutableArray

InstanceId public_oe property

The Instance ID stored in the Fortify result if present; otherwise, null.
public string InstanceId
Résultat string

Kingdom public_oe property

The kingdom of the Fortify result.
public string Kingdom
Résultat string

PrimaryOrSink public_oe property

The primary location for the Fortify result; this will be the sink for data flow rules.
public FortifyPathElement,Microsoft.CodeAnalysis.Sarif.Converters PrimaryOrSink
Résultat FortifyPathElement

Priority public_oe property

The "friority" (which appears to be an intentional misspelling of "priority") of the Fortify result if present; otherwise, null.
public string Priority
Résultat string

RuleId public_oe property

The Rule ID stored in the Fortify result if present; otherwise, null.
public string RuleId
Résultat string

Source public_oe property

Source for the flagged data flow if present; otherwise, null.
public FortifyPathElement,Microsoft.CodeAnalysis.Sarif.Converters Source
Résultat FortifyPathElement