C# Class SonarQube.Plugins.Roslyn.DiagnosticAssemblyScanner

Searches for and instantiates Roslyn analyzers in unknown folders and/or assemblies.
Afficher le fichier Open project: SonarSource-VisualStudio/sonarqube-roslyn-sdk Class Usage Examples

Méthodes publiques

Méthode Description
DiagnosticAssemblyScanner ( ILogger logger ) : System
InstantiateDiagnostics ( string language ) : IEnumerable

Loads all of the given assemblies and instantiates Roslyn diagnostic objects - i.e. existing types deriving from DiagnosticAnalyzer. Non-assembly files will be ignored.

Private Methods

Méthode Description
DiagnosticMatchesLanguage ( Type type, string language ) : bool
InstantiateDiagnosticAnalyzers ( Assembly analyserAssembly, string language ) : IEnumerable
InstantiateDiagnosticsFromAssembly ( string assemblyPath, string language ) : IEnumerable

Loads the given assembly and instantiates Roslyn diagnostic objects - i.e. existing types deriving from DiagnosticAnalyzer

LoadAnalyzerAssembly ( string assemblyPath ) : Assembly

Load the assembly at the given path into memory, with the given additional assembly search directories.

Method Details

DiagnosticAssemblyScanner() public méthode

public DiagnosticAssemblyScanner ( ILogger logger ) : System
logger ILogger
Résultat System

InstantiateDiagnostics() public méthode

Loads all of the given assemblies and instantiates Roslyn diagnostic objects - i.e. existing types deriving from DiagnosticAnalyzer. Non-assembly files will be ignored.
public InstantiateDiagnostics ( string language ) : IEnumerable
language string
Résultat IEnumerable