Source/Analyzers/CodeFixes/AttributeMissingCodeFixProvider.cs
Method GenerateIdentityAttribute
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
static async Task<Solution> GenerateIdentityAttribute(CodeFixContext context, Document document, string targetClass, string attributeClass,
CancellationToken cancellationToken)
Avoid too many return
statements within this method. Open
Open
if (await targetDocument.GetSyntaxRootAsync(cancellationToken) is not CompilationUnitSyntax existingRoot) return document.Project.Solution;
Avoid too many return
statements within this method. Open
Open
return updatedDocument.Project.Solution;
Avoid too many return
statements within this method. Open
Open
if (targetDocument is null) return document.Project.Solution;