public override bool CanSuppress(SemanticModel model, SyntaxNode syntax, DiagnosticId ruleId)
        {
            var parameterSyntax = syntax as ParameterSyntax;
            var symbol          = model.GetDeclaredSymbol(parameterSyntax);

            if (_sanitizedSourceAnalyzer.IsSymbolSanitized(symbol, ruleId))
            {
                return(true);
            }
            return(base.CanSuppress(model, syntax, ruleId));
        }
        private bool CanParameterSymbolBeSanitized(SymbolInfo symbolInfo, DiagnosticId ruleId)
        {
            var parameterSymbol = symbolInfo.Symbol as IParameterSymbol;

            if (parameterSymbol == null)
            {
                return(false);
            }

            return(_parameterSymbolAnalyzer.IsSymbolSanitized(parameterSymbol, ruleId));
        }