microting/eform-sdk-dotnet

View on GitHub
eFormCore/Infrastructure/Data/Entities/EntityGroup.cs

Summary

Maintainability
A
2 hrs
Test Coverage

Method ReadSorted has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static async Task<Models.EntityGroup> ReadSorted(MicrotingDbContext dbContext, string entityGroupMUId,
            string sort,
            string nameFilter)
        {
            EntityGroup eG =
Severity: Major
Found in eFormCore/Infrastructure/Data/Entities/EntityGroup.cs - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                if (string.IsNullOrEmpty(nameFilter))
                {
                    eILst = dbContext.EntityItems.Where(x => x.EntityGroupId == eG.Id
                                                             && x.WorkflowState !=
                                                             Constants.Constants.WorkflowStates.Removed
    Severity: Major
    Found in eFormCore/Infrastructure/Data/Entities/EntityGroup.cs - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status