C# 클래스 Microsoft.CodeAnalysis.Sarif.Converters.AndroidStudioConverter

Converts an xml log file of the Android Studio format into the SARIF format
상속: ToolFileConverterBase
파일 보기 프로젝트 열기: Microsoft/sarif-sdk 1 사용 예제들

공개 메소드들

메소드 설명
AndroidStudioConverter ( ) : System

Initializes a new instance of the AndroidStudioConverter class.

Convert ( Stream input, IResultLogWriter output ) : void

Converts an Android Studio formatted log as input into a SARIF SarifLog using the output.

ConvertProblemToSarifResult ( AndroidStudioProblem problem ) : System.Result
GetShortDescriptionForProblem ( AndroidStudioProblem problem ) : string

Generates a user-facing description for a problem, using the description supplied at construction time if it is present; otherwise, generates a description from the problem type.

비공개 메소드들

메소드 설명
CreateLogicalLocation ( AndroidStudioProblem problem ) : string
CreateSignature ( AndroidStudioProblem problem ) : string
GenerateFullMessage ( string description, ImmutableArray hints ) : string
ProcessAndroidStudioLog ( XmlReader xmlReader ) : ISet

Processes an Android Studio log and writes issues therein to an instance of IResultLogWriter.

RemoveBadRoot ( string path, Uri &uri ) : bool
SetSarifResultPropertiesForProblem ( System.Result result, AndroidStudioProblem problem ) : void
TryAddLogicalLocation ( string parentKey, string value, string kind, string delimiter = @"\" ) : string

메소드 상세

AndroidStudioConverter() 공개 메소드

Initializes a new instance of the AndroidStudioConverter class.
public AndroidStudioConverter ( ) : System
리턴 System

Convert() 공개 메소드

Converts an Android Studio formatted log as input into a SARIF SarifLog using the output.
public Convert ( Stream input, IResultLogWriter output ) : void
input Stream The Android Studio formatted log.
output IResultLogWriter The SarifLog to write the output to.
리턴 void

ConvertProblemToSarifResult() 공개 메소드

public ConvertProblemToSarifResult ( AndroidStudioProblem problem ) : System.Result
problem AndroidStudioProblem
리턴 System.Result

GetShortDescriptionForProblem() 공개 정적인 메소드

Generates a user-facing description for a problem, using the description supplied at construction time if it is present; otherwise, generates a description from the problem type.
public static GetShortDescriptionForProblem ( AndroidStudioProblem problem ) : string
problem AndroidStudioProblem The problem.
리턴 string