dolittle/DotNET.SDK

View on GitHub
Source/Analyzers/CodeFixes/AttributeMissingCodeFixProvider.cs

Summary

Maintainability
A
2 hrs
Test Coverage

Method GenerateIdentityAttribute has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    static async Task<Solution> GenerateIdentityAttribute(CodeFixContext context, Document document, string targetClass, string attributeClass,
        CancellationToken cancellationToken)
Severity: Minor
Found in Source/Analyzers/CodeFixes/AttributeMissingCodeFixProvider.cs - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

            if (await targetDocument.GetSyntaxRootAsync(cancellationToken) is not CompilationUnitSyntax existingRoot) return document.Project.Solution;
    Severity: Major
    Found in Source/Analyzers/CodeFixes/AttributeMissingCodeFixProvider.cs - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return updatedDocument.Project.Solution;
      Severity: Major
      Found in Source/Analyzers/CodeFixes/AttributeMissingCodeFixProvider.cs - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                if (targetDocument is null) return document.Project.Solution;
        Severity: Major
        Found in Source/Analyzers/CodeFixes/AttributeMissingCodeFixProvider.cs - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status