Exemple #1
0
        internal bool IsSupportedDiagnostic(Diagnostic diagnostic)
        {
            if (diagnostic.Severity >= SeverityLevel)
            {
                return((SupportedDiagnosticIds.Count > 0)
                    ? SupportedDiagnosticIds.Contains(diagnostic.Id)
                    : !IgnoredDiagnosticIds.Contains(diagnostic.Id));
            }

            return(false);
        }
Exemple #2
0
 internal bool IsSupportedDiagnosticId(string diagnosticId)
 {
     return((SupportedDiagnosticIds.Count > 0)
         ? SupportedDiagnosticIds.Contains(diagnosticId)
         : !IgnoredDiagnosticIds.Contains(diagnosticId));
 }