public AnalysisApplicability CanAnalyze(BinaryAnalyzerContext context, out string reasonForNotAnalyzing)
        {
            AnalysisApplicability applicability = StackProtectionUtilities.CommonCanAnalyze(context, out reasonForNotAnalyzing);

            // Checks for missing policy should always be evaluated as the last action, so that
            // we do not raise an error in cases where the analysis would not otherise be applied.
            if (applicability == AnalysisApplicability.ApplicableToSpecifiedTarget)
            {
                reasonForNotAnalyzing = RulesResources.DoNotShipVulnerabilities_MissingPolicy_InternalError;
                if (context.Policy == null)
                {
                    return(AnalysisApplicability.NotApplicableToAnyTargetWithoutPolicy);
                }
            }
            return(applicability);
        }
 public AnalysisApplicability CanAnalyze(BinaryAnalyzerContext context, out string reasonForNotAnalyzing)
 {
     return(StackProtectionUtilities.CommonCanAnalyze(context, out reasonForNotAnalyzing));
 }