deveel/deveel.identity.mongodb

View on GitHub

Showing 8 of 24 total issues

Class MongoDbUserStore has 61 methods (exceeds 20 allowed). Consider refactoring.
Open

    public class MongoDbUserStore<TUser> : MongoDbStoreBase<TUser>,
        IQueryableUserStore<TUser>,
        IProtectedUserStore<TUser>,
        IUserPasswordStore<TUser>,
        IUserEmailStore<TUser>,
Severity: Major
Found in src/Deveel.Identity.MongoDb/Security/MongoDbUserStore_T.cs - About 1 day to fix

    File MongoDbUserStore_T.cs has 397 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Linq.Expressions;
    using System.Security.Claims;
    Severity: Minor
    Found in src/Deveel.Identity.MongoDb/Security/MongoDbUserStore_T.cs - About 5 hrs to fix

      Class IdentityBuilderExtensions has 33 methods (exceeds 20 allowed). Consider refactoring.
      Open

          public static class IdentityBuilderExtensions {
              public static IdentityBuilder ConfigureMongo(this IdentityBuilder builder, IConfiguration configuration, string sectionName) {
                  builder.Services.ConfigureMongoIdentity(configuration, sectionName);
      
                  return builder;
      Severity: Minor
      Found in src/Deveel.Identity.MongoDb/Security/IdentityBuilderExtensions.cs - About 4 hrs to fix

        Method UpdateAsync has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public virtual async Task<IdentityResult> UpdateAsync(TUser user, CancellationToken cancellationToken) {
                    ThrowIfDisposed();
                    cancellationToken.ThrowIfCancellationRequested();
        
                    try {
        Severity: Minor
        Found in src/Deveel.Identity.MongoDb/Security/MongoDbUserStore_T.cs - About 1 hr to fix

          Method UpdateAsync has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public async Task<IdentityResult> UpdateAsync(TRole role, CancellationToken cancellationToken) {
                      ThrowIfDisposed();
                      cancellationToken.ThrowIfCancellationRequested();
          
                      try {
          Severity: Minor
          Found in src/Deveel.Identity.MongoDb/Security/MongoDbRoleStore_T.cs - About 1 hr to fix

            Method DeleteAsync has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public async Task<IdentityResult> DeleteAsync(TRole role, CancellationToken cancellationToken) {
                        if (role is null)
                            throw new ArgumentNullException(nameof(role));
            
                        ThrowIfDisposed();
            Severity: Minor
            Found in src/Deveel.Identity.MongoDb/Security/MongoDbRoleStore_T.cs - About 1 hr to fix

              Method DeleteAsync has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      public virtual async Task<IdentityResult> DeleteAsync(TUser user, CancellationToken cancellationToken) {
                          if (user is null)
                              throw new ArgumentNullException(nameof(user));
              
                          ThrowIfDisposed();
              Severity: Minor
              Found in src/Deveel.Identity.MongoDb/Security/MongoDbUserStore_T.cs - About 1 hr to fix

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

                        public virtual Task SetTokenAsync(TUser user, string loginProvider, string name, string value, CancellationToken cancellationToken)
                Severity: Minor
                Found in src/Deveel.Identity.MongoDb/Security/MongoDbUserStore_T.cs - About 35 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language