Showing 3 of 7 total issues
Method OnModelCreating
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
Open
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddEasyPermission();