C# Класс Microsoft.CodeAnalysis.Sarif.Converters.FortifyIssue

A Fortify result element.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Abstract string
AbstractCustom string
Category string
CweIds ImmutableArray
InstanceId string
Kingdom string
PrimaryOrSink FortifyPathElement
Priority string
RuleId string
Source FortifyPathElement

Открытые методы

Метод Описание
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.

Описание методов

FortifyIssue() публичный Метод

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.
Результат System

Parse() публичный статический Метод

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.
Результат FortifyIssue

ParseCweIds() публичный статический Метод

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.
Результат ImmutableArray

Описание свойств

Abstract публичное свойство

The abstract (description) message of the Fortify result if present; otherwise, null.
public string Abstract
Результат string

AbstractCustom публичное свойство

A custom user-provided abstract (description) message of the Fortify result if it is present; otherwise, null.
public string AbstractCustom
Результат string

Category публичное свойство

The category of Fortify result.
public string Category
Результат string

CweIds публичное свойство

List of CWE IDs stapled to the Fortify result, if present.
public ImmutableArray CweIds
Результат ImmutableArray

InstanceId публичное свойство

The Instance ID stored in the Fortify result if present; otherwise, null.
public string InstanceId
Результат string

Kingdom публичное свойство

The kingdom of the Fortify result.
public string Kingdom
Результат string

PrimaryOrSink публичное свойство

The primary location for the Fortify result; this will be the sink for data flow rules.
public FortifyPathElement,Microsoft.CodeAnalysis.Sarif.Converters PrimaryOrSink
Результат FortifyPathElement

Priority публичное свойство

The "friority" (which appears to be an intentional misspelling of "priority") of the Fortify result if present; otherwise, null.
public string Priority
Результат string

RuleId публичное свойство

The Rule ID stored in the Fortify result if present; otherwise, null.
public string RuleId
Результат string

Source публичное свойство

Source for the flagged data flow if present; otherwise, null.
public FortifyPathElement,Microsoft.CodeAnalysis.Sarif.Converters Source
Результат FortifyPathElement