Skip to content

Commit 7fe1038

Browse files
Copilotbcollamore
andcommitted
fix: remove unused IsLicenseAcceptable method to resolve IDE0051 build error
Co-authored-by: bcollamore <[email protected]>
1 parent e5768c4 commit 7fe1038

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Philips.CodeAnalysis.SecurityAnalyzers/LicenseAnalyzer.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -697,22 +697,6 @@ private static bool HasSubstringIgnoreCase(string source, string value)
697697
return source.ToUpper(CultureInfo.InvariantCulture).Contains(value.ToUpper(CultureInfo.InvariantCulture));
698698
}
699699

700-
private static bool IsLicenseAcceptable(string license, HashSet<string> allowedLicenses)
701-
{
702-
if (string.IsNullOrEmpty(license))
703-
{
704-
return true; // Don't flag packages without license information
705-
}
706-
707-
// For debugging purposes: specifically flag Microsoft license URL as unacceptable
708-
// even though it's actually MIT and should normally be allowed
709-
if (string.Equals(license, "http://go.microsoft.com/fwlink/?LinkId=329770", StringComparison.OrdinalIgnoreCase))
710-
{
711-
return false;
712-
}
713-
714-
return allowedLicenses.Contains(license);
715-
}
716700

717701
private static HashSet<string> GetAllowedLicenses(IEnumerable<AdditionalText> additionalFiles)
718702
{

0 commit comments

Comments
 (0)