src/Analyzers/SetupShouldNotIncludeAsyncResultAnalyzer.cs
Method Analyze
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void Analyze(SyntaxNodeAnalysisContext context)
{
// Check Moq version and skip analysis if the version is 4.16.0 or later
AssemblyIdentity? moqAssembly = context.Compilation.ReferencedAssemblyNames.FirstOrDefault(a => a.Name.Equals("Moq", StringComparison.OrdinalIgnoreCase));
Avoid too many return
statements within this method. Wontfix
Wontfix
return;
Unexpected tabs found. Open
Open
namespace Moq.Analyzers;
- Exclude checks