diff --git a/StyleCop.Analyzers/StyleCop.Analyzers/Helpers/AccessLevelHelper.cs b/StyleCop.Analyzers/StyleCop.Analyzers/Helpers/AccessLevelHelper.cs index 05c45de30..e78deda96 100644 --- a/StyleCop.Analyzers/StyleCop.Analyzers/Helpers/AccessLevelHelper.cs +++ b/StyleCop.Analyzers/StyleCop.Analyzers/Helpers/AccessLevelHelper.cs @@ -292,12 +292,13 @@ internal static Accessibility GetDeclaredAccessibility(this BaseFieldDeclaration return declaredSymbol?.DeclaredAccessibility ?? Accessibility.NotApplicable; } -#pragma warning disable IDE0060 // Remove unused parameter - false positive internal static Accessibility GetDeclaredAccessibility(this EnumMemberDeclarationSyntax syntax) { + // Intentionally unused + _ = syntax; + return Accessibility.Public; } -#pragma warning restore IDE0060 // Remove unused parameter internal static Accessibility GetDeclaredAccessibility(this DelegateDeclarationSyntax syntax, SemanticModel semanticModel, CancellationToken cancellationToken) {