rafaelturon/blockchain-investments

View on GitHub
src/Blockchain.Investments.Api/Startup.cs

Summary

Maintainability
B
4 hrs
Test Coverage

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

        public void ConfigureServices(IServiceCollection services)
        {
            // Register the IConfiguration instance which AppConfig binds against.
            services.Configure<AppConfig>(Configuration);

Severity: Major
Found in src/Blockchain.Investments.Api/Startup.cs - About 3 hrs to fix

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

            public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
            {
                //string currentUrl = app.ServerFeatures.Get<Microsoft.AspNetCore.Hosting.Server.Features.IServerAddressesFeature>().Addresses.Single();
    
                loggerFactory.AddConsole(Configuration.GetSection("Logging"));
    Severity: Minor
    Found in src/Blockchain.Investments.Api/Startup.cs - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status