Skip to content

Commit

Permalink
[main] Bump MicrosoftCodeAnalysisAnalyzersVersion from 3.11.0-beta1.2…
Browse files Browse the repository at this point in the history
…4508.2 to 3.11.0-beta1.24527.2 (#4102)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amaury Levé <[email protected]>
Co-authored-by: Youssef1313 <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2024
1 parent 8c14d93 commit ef407a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<PropertyGroup Label="Product dependencies">
<AspireHostingTestingVersion>8.2.2</AspireHostingTestingVersion>
<MicrosoftBuildVersion>17.11.4</MicrosoftBuildVersion>
<MicrosoftCodeAnalysisAnalyzersVersion>3.11.0-beta1.24508.2</MicrosoftCodeAnalysisAnalyzersVersion>
<MicrosoftCodeAnalysisAnalyzersVersion>3.11.0-beta1.24527.2</MicrosoftCodeAnalysisAnalyzersVersion>
<MicrosoftCodeAnalysisVersion>3.11.0</MicrosoftCodeAnalysisVersion>
<MicrosoftCodeAnalysisVersionForTests>4.8.0</MicrosoftCodeAnalysisVersionForTests>
<MicrosoftCodeAnalysisVersionForTests>4.10.0</MicrosoftCodeAnalysisVersionForTests>
<MicrosoftCodeAnalysisPublicApiAnalyzersVersion>$(MicrosoftCodeAnalysisAnalyzersVersion)</MicrosoftCodeAnalysisPublicApiAnalyzersVersion>
<MicrosoftCodeAnalysisBannedApiAnalyzersVersion>$(MicrosoftCodeAnalysisPublicApiAnalyzersVersion)</MicrosoftCodeAnalysisBannedApiAnalyzersVersion>
<!-- UWP and WinUI dependencies -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static void AnalyzeOperation(OperationAnalysisContext context, INamedTyp

IArgumentOperation? conditionArgument = invocationOperation.Arguments.FirstOrDefault(x => x.Parameter?.Name == "condition");
if (conditionArgument != null
&& conditionArgument.Children.Any(op => op is IUnaryOperation { OperatorKind: UnaryOperatorKind.Not }))
&& conditionArgument.Value is IUnaryOperation { OperatorKind: UnaryOperatorKind.Not })
{
context.ReportDiagnostic(invocationOperation.CreateDiagnostic(Rule));
}
Expand Down

0 comments on commit ef407a8

Please sign in to comment.