morrisjdev/FileContextCore

View on GitHub
FileContextCore/Query/Internal/FileContextShapedQueryCompilingExpressionVisitor.CustomShaperCompilingExpressionVisitor.cs

Summary

Maintainability
A
0 mins
Test Coverage

Method VisitExtension has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

            protected override Expression VisitExtension(Expression extensionExpression)
            {
                if (extensionExpression is IncludeExpression includeExpression)
                {
                    var entityClrType = includeExpression.EntityExpression.Type;

    Method IncludeCollection has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

                private static void IncludeCollection<TEntity, TIncludingEntity, TIncludedEntity>(
                    QueryContext queryContext,
                    IEnumerable<ValueBuffer> innerValueBuffers,
                    Func<QueryContext, ValueBuffer, TIncludedEntity> innerShaper,
                    TEntity entity,

      Method IncludeReference has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Wontfix

                  private static void IncludeReference<TEntity, TIncludingEntity, TIncludedEntity>(
                      QueryContext queryContext,
                      TEntity entity,
                      TIncludedEntity relatedEntity,
                      INavigation navigation,

        Method IncludeCollection has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Wontfix

                        QueryContext queryContext,
                        IEnumerable<ValueBuffer> innerValueBuffers,
                        Func<QueryContext, ValueBuffer, TIncludedEntity> innerShaper,
                        TEntity entity,
                        INavigation navigation,

          Method IncludeReference has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Wontfix

                          QueryContext queryContext,
                          TEntity entity,
                          TIncludedEntity relatedEntity,
                          INavigation navigation,
                          INavigation inverseNavigation,

            Avoid too many return statements within this method.
            Wontfix

                            return base.VisitExtension(extensionExpression);

              There are no issues that match your filters.

              Category
              Status