Skip to content

Merge branch 'DotNetAnalyzers:master' into feature/issue-3961_ide0079…

7bed807
Select commit
Loading
Failed to load commit list.
Open

Fixed or suppressed IDE0079 warnings as appropriate. #3962

Merge branch 'DotNetAnalyzers:master' into feature/issue-3961_ide0079…
7bed807
Select commit
Loading
Failed to load commit list.
Azure Pipelines / DotNetAnalyzers.StyleCopAnalyzers failed May 3, 2026 in 1h 18m 59s

Build #1.2.0-beta.727+5bd5198e45 had test failures

Details

Tests

  • Failed: 4,958 (8.03%)
  • Passed: 56,768 (91.97%)
  • Other: 0 (0.00%)
  • Total: 61,726

Annotations

Check failure on line 10549 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / DotNetAnalyzers.StyleCopAnalyzers

Build log #L10549

PowerShell exited with code '1'.

Check failure on line 11073 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / DotNetAnalyzers.StyleCopAnalyzers

Build log #L11073

PowerShell exited with code '1'.

Check failure on line 13819 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / DotNetAnalyzers.StyleCopAnalyzers

Build log #L13819

PowerShell exited with code '1'.

Check failure on line 14309 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / DotNetAnalyzers.StyleCopAnalyzers

Build log #L14309

PowerShell exited with code '1'.

Check failure on line 1 in StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.VerifyUsingReorderingWithoutMovingWithFileHeaderAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / DotNetAnalyzers.StyleCopAnalyzers

StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.VerifyUsingReorderingWithoutMovingWithFileHeaderAsync

System.TypeInitializationException : The type initializer for 'StyleCop.Analyzers.OrderingRules.SA1200UsingDirectivesMustBePlacedCorrectly' threw an exception.\r\n---- System.ArgumentNullException : Value cannot be null.\r\nParameter name: messageFormat
Raw output
   at StyleCop.Analyzers.OrderingRules.SA1200UsingDirectivesMustBePlacedCorrectly..ctor()
   at StyleCop.Analyzers.Test.OrderingRules.CombinedUsingDirectivesVerifier.CSharpTest.<GetDiagnosticAnalyzers>d__0.MoveNext() in D:\a\1\s\StyleCop.Analyzers\StyleCop.Analyzers.Test\OrderingRules\CombinedUsingDirectivesVerifier.cs:line 24
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Microsoft.CodeAnalysis.Testing.CodeFixTest`1.<RunImplAsync>d__44.MoveNext() in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.CodeFix.Testing/CodeFixTest`1.cs:line 289
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<RunAsync>d__61.MoveNext() in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs:line 172
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.<VerifyUsingReorderingWithoutMovingWithFileHeaderAsync>d__7.MoveNext() in D:\a\1\s\StyleCop.Analyzers\StyleCop.Analyzers.Test\OrderingRules\UsingCodeFixProviderCombinedSystemDirectivesUnitTests.cs:line 216
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
----- Inner Stack Trace -----
   at Microsoft.CodeAnalysis.DiagnosticDescriptor..ctor(String id, LocalizableString title, LocalizableString messageFormat, String category, DiagnosticSeverity defaultSeverity, Boolean isEnabledByDefault, LocalizableString description, String helpLinkUri, ImmutableArray`1 customTags)
   at Microsoft.CodeAnalysis.DiagnosticDescriptor..ctor(String id, LocalizableString title, LocalizableString messageFormat, String category, DiagnosticSeverity defaultSeverity, Boolean isEnabledByDefault, Loc

Check failure on line 1 in StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.VerifyUsingReorderingWithFileHeaderAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / DotNetAnalyzers.StyleCopAnalyzers

StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.VerifyUsingReorderingWithFileHeaderAsync

System.TypeInitializationException : The type initializer for 'StyleCop.Analyzers.OrderingRules.SA1200UsingDirectivesMustBePlacedCorrectly' threw an exception.\r\n---- System.ArgumentNullException : Value cannot be null.\r\nParameter name: messageFormat
Raw output
   at StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.<VerifyUsingReorderingWithFileHeaderAsync>d__5.MoveNext() in D:\a\1\s\StyleCop.Analyzers\StyleCop.Analyzers.Test\OrderingRules\UsingCodeFixProviderCombinedSystemDirectivesUnitTests.cs:line 117
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
----- Inner Stack Trace -----
   at Microsoft.CodeAnalysis.DiagnosticDescriptor..ctor(String id, LocalizableString title, LocalizableString messageFormat, String category, DiagnosticSeverity defaultSeverity, Boolean isEnabledByDefault, LocalizableString description, String helpLinkUri, ImmutableArray`1 customTags)
   at Microsoft.CodeAnalysis.DiagnosticDescriptor..ctor(String id, LocalizableString title, LocalizableString messageFormat, String category, DiagnosticSeverity defaultSeverity, Boolean isEnabledByDefault, LocalizableString description, String helpLinkUri, String[] customTags)
   at StyleCop.Analyzers.OrderingRules.SA1200UsingDirectivesMustBePlacedCorrectly..cctor() in D:\a\1\s\StyleCop.Analyzers\StyleCop.Analyzers\OrderingRules\SA1200UsingDirectivesMustBePlacedCorrectly.cs:line 164

Check failure on line 1 in StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.VerifyUsingReorderingWithoutMovingAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / DotNetAnalyzers.StyleCopAnalyzers

StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.VerifyUsingReorderingWithoutMovingAsync

System.TypeInitializationException : The type initializer for 'StyleCop.Analyzers.OrderingRules.SA1200UsingDirectivesMustBePlacedCorrectly' threw an exception.\r\n---- System.ArgumentNullException : Value cannot be null.\r\nParameter name: messageFormat
Raw output
   at StyleCop.Analyzers.OrderingRules.SA1200UsingDirectivesMustBePlacedCorrectly..ctor()
   at StyleCop.Analyzers.Test.OrderingRules.CombinedUsingDirectivesVerifier.CSharpTest.<GetDiagnosticAnalyzers>d__0.MoveNext() in D:\a\1\s\StyleCop.Analyzers\StyleCop.Analyzers.Test\OrderingRules\CombinedUsingDirectivesVerifier.cs:line 24
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Microsoft.CodeAnalysis.Testing.CodeFixTest`1.<RunImplAsync>d__44.MoveNext() in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.CodeFix.Testing/CodeFixTest`1.cs:line 289
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<RunAsync>d__61.MoveNext() in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs:line 172
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.<VerifyUsingReorderingWithoutMovingAsync>d__6.MoveNext() in D:\a\1\s\StyleCop.Analyzers\StyleCop.Analyzers.Test\OrderingRules\UsingCodeFixProviderCombinedSystemDirectivesUnitTests.cs:line 177
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
----- Inner Stack Trace -----
   at Microsoft.CodeAnalysis.DiagnosticDescriptor..ctor(String id, LocalizableString title, LocalizableString messageFormat, String category, DiagnosticSeverity defaultSeverity, Boolean isEnabledByDefault, LocalizableString description, String helpLinkUri, ImmutableArray`1 customTags)
   at Microsoft.CodeAnalysis.DiagnosticDescriptor..ctor(String id, LocalizableString title, LocalizableString messageFormat, String category, DiagnosticSeverity defaultSeverity, Boolean isEnabledByDefault, LocalizableString

Check failure on line 1 in StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.VerifyUsingReorderingWithoutMovingWithMultiLineCommentAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / DotNetAnalyzers.StyleCopAnalyzers

StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.VerifyUsingReorderingWithoutMovingWithMultiLineCommentAsync

System.TypeInitializationException : The type initializer for 'StyleCop.Analyzers.OrderingRules.SA1200UsingDirectivesMustBePlacedCorrectly' threw an exception.\r\n---- System.ArgumentNullException : Value cannot be null.\r\nParameter name: messageFormat
Raw output
   at StyleCop.Analyzers.OrderingRules.SA1200UsingDirectivesMustBePlacedCorrectly..ctor()
   at StyleCop.Analyzers.Test.OrderingRules.CombinedUsingDirectivesVerifier.CSharpTest.<GetDiagnosticAnalyzers>d__0.MoveNext() in D:\a\1\s\StyleCop.Analyzers\StyleCop.Analyzers.Test\OrderingRules\CombinedUsingDirectivesVerifier.cs:line 24
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Microsoft.CodeAnalysis.Testing.CodeFixTest`1.<RunImplAsync>d__44.MoveNext() in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.CodeFix.Testing/CodeFixTest`1.cs:line 289
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<RunAsync>d__61.MoveNext() in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs:line 172
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at StyleCop.Analyzers.Test.OrderingRules.UsingCodeFixProviderCombinedSystemDirectivesUnitTests.<VerifyUsingReorderingWithoutMovingWithMultiLineCommentAsync>d__9.MoveNext() in D:\a\1\s\StyleCop.Analyzers\StyleCop.Analyzers.Test\OrderingRules\UsingCodeFixProviderCombinedSystemDirectivesUnitTests.cs:line 302
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
----- Inner Stack Trace -----
   at Microsoft.CodeAnalysis.DiagnosticDescriptor..ctor(String id, LocalizableString title, LocalizableString messageFormat, String category, DiagnosticSeverity defaultSeverity, Boolean isEnabledByDefault, LocalizableString description, String helpLinkUri, ImmutableArray`1 customTags)
   at Microsoft.CodeAnalysis.DiagnosticDescriptor..ctor(String id, LocalizableString title, LocalizableString messageFormat, String category, DiagnosticSeverity defaultSeverity, Boolean isEnabledByDefaul