Arnolyzer.Analyzers.CommonFunctions.HasIgnoreRuleAttribute C# (CSharp) Method

HasIgnoreRuleAttribute() private static method

private static HasIgnoreRuleAttribute ( ISymbol symbol, IEnumerable attributes ) : bool
symbol ISymbol
attributes IEnumerable
return bool
        private static bool HasIgnoreRuleAttribute(ISymbol symbol, IEnumerable<Type> attributes) => 
            symbol.GetAttributes()
                  .Any(s => attributes.TryFirst(t => MatchAttributeName(t, s.AttributeClass.Name)).HasValue);