furkandeveloper/EasyPermissionManagement

View on GitHub

Showing 3 of 7 total issues

Method OnModelCreating has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

            modelBuilder.Entity<Permission>(entity =>

    Method ApplyEasyPermission has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public static void ApplyEasyPermission(this IApplicationBuilder app)
            {
                var type = typeof(PermissionProvider);
                var service = AppDomain.CurrentDomain.GetAssemblies().SelectMany(s => s.GetTypes())
                   .Where(p => type.IsAssignableFrom(p) && !p.IsInterface)

      Method ConfigureServices has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public void ConfigureServices(IServiceCollection services)
              {
                  services.AddControllers();
                  services.AddEasyPermission();
      
      
      Severity: Minor
      Found in sample/EasyPermissionManagement.Web/Startup.cs - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language