Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Feb 17, 2023
1 parent b45b892 commit 1bffdec
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -49,9 +49,9 @@ public sealed class StaticFieldVisible : SonarDiagnosticAnalyzer
: Enumerable.Empty<Diagnostic>();

private static bool FieldIsRelevant(FieldDeclarationSyntax node) =>
node.Modifiers.Any()
node.Modifiers.Any(SyntaxKind.StaticKeyword)
&& node.Modifiers.Count > 1
&& !node.Modifiers.Any(SyntaxKind.PrivateKeyword)
&& node.Modifiers.Any(SyntaxKind.StaticKeyword)
&& !node.Modifiers.Any(SyntaxKind.ReadOnlyKeyword);

private static bool FieldIsThreadSafe(IFieldSymbol fieldSymbol) =>
Expand Down

0 comments on commit 1bffdec

Please sign in to comment.