C# Class Arnolyzer.Analyzers.CommonFunctions

Datei anzeigen Open project: DavidArno/Arnolyzer

Public Methods

Method Description
AutoGenerated ( Microsoft.CodeAnalysis.SyntaxNode node ) : bool
IgnoredFile ( Microsoft.CodeAnalysis.SyntaxNode node, SettingsDetails settings ) : bool
IsEnabledByDefault ( this state ) : bool
ItemsToIgnoreFromAttributes ( ISymbol symbol, IEnumerable attributes ) : IEnumerable
NodeIsTypeDeclaration ( Microsoft.CodeAnalysis.SyntaxNode node ) : bool
PropertyHasIgnoreRuleAttribute ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax property, IEnumerable attributes ) : bool
SeverityType ( this severity ) : string
SkipSymbolAnalysis ( ISymbol symbol, SettingsHandler settingsHandler, IEnumerable suppressionAttributes ) : bool
SkipSymbolAnalysisIgnoringAttributes ( ISymbol symbol, SettingsHandler settingsHandler ) : bool

Private Methods

Method Description
AutoGenerated ( ISymbol symbol ) : bool
GetFilePathForSymbol ( ISymbol symbol ) : string
HasIgnoreRuleAttribute ( ISymbol symbol, IEnumerable attributes ) : bool
IgnoredFile ( ISymbol symbol, SettingsDetails settings ) : bool
MatchAttributeName ( Type attributeType, string name ) : bool
SyntaxRootContainsAutoGeneratedComment ( Microsoft.CodeAnalysis.SyntaxNode syntaxRoot ) : bool
SyntaxTreeIsInIgoredFile ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree, SettingsDetails settings ) : bool

Method Details

AutoGenerated() public static method

public static AutoGenerated ( Microsoft.CodeAnalysis.SyntaxNode node ) : bool
node Microsoft.CodeAnalysis.SyntaxNode
return bool

IgnoredFile() public static method

public static IgnoredFile ( Microsoft.CodeAnalysis.SyntaxNode node, SettingsDetails settings ) : bool
node Microsoft.CodeAnalysis.SyntaxNode
settings Arnolyzer.Analyzers.Settings.SettingsDetails
return bool

IsEnabledByDefault() public static method

public static IsEnabledByDefault ( this state ) : bool
state this
return bool

ItemsToIgnoreFromAttributes() public static method

public static ItemsToIgnoreFromAttributes ( ISymbol symbol, IEnumerable attributes ) : IEnumerable
symbol ISymbol
attributes IEnumerable
return IEnumerable

NodeIsTypeDeclaration() public static method

public static NodeIsTypeDeclaration ( Microsoft.CodeAnalysis.SyntaxNode node ) : bool
node Microsoft.CodeAnalysis.SyntaxNode
return bool

PropertyHasIgnoreRuleAttribute() public static method

public static PropertyHasIgnoreRuleAttribute ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax property, IEnumerable attributes ) : bool
property Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax
attributes IEnumerable
return bool

SeverityType() public static method

public static SeverityType ( this severity ) : string
severity this
return string

SkipSymbolAnalysis() public static method

public static SkipSymbolAnalysis ( ISymbol symbol, SettingsHandler settingsHandler, IEnumerable suppressionAttributes ) : bool
symbol ISymbol
settingsHandler Arnolyzer.Analyzers.Settings.SettingsHandler
suppressionAttributes IEnumerable
return bool

SkipSymbolAnalysisIgnoringAttributes() public static method

public static SkipSymbolAnalysisIgnoringAttributes ( ISymbol symbol, SettingsHandler settingsHandler ) : bool
symbol ISymbol
settingsHandler Arnolyzer.Analyzers.Settings.SettingsHandler
return bool