liannoi/wlodzimierz

View on GitHub

Showing 159 of 159 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        protected override void BuildTargetModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .UseIdentityColumns()
src/Layers/Infrastructure/Identity/Infrastructure.Identity.API/Migrations/WlodzimierzIdentityContextModelSnapshot.cs on lines 12..276

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 2134.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        protected override void BuildModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .UseIdentityColumns()
src/Layers/Infrastructure/Identity/Infrastructure.Identity.API/Migrations/NullableAdditional.Designer.cs on lines 16..280

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 2134.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Method BuildTargetModel has 200 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        protected override void BuildTargetModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .UseIdentityColumns()

    Method BuildTargetModel has 197 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            protected override void BuildTargetModel(ModelBuilder modelBuilder)
            {
    #pragma warning disable 612, 618
                modelBuilder
                    .UseIdentityColumns()

      Method BuildTargetModel has 197 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              protected override void BuildTargetModel(ModelBuilder modelBuilder)
              {
      #pragma warning disable 612, 618
                  modelBuilder
                      .UseIdentityColumns()

        Method BuildModel has 197 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                protected override void BuildModel(ModelBuilder modelBuilder)
                {
        #pragma warning disable 612, 618
                    modelBuilder
                        .UseIdentityColumns()

          Method BuildTargetModel has 191 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  protected override void BuildTargetModel(ModelBuilder modelBuilder)
                  {
          #pragma warning disable 612, 618
                      modelBuilder
                          .UseIdentityColumns()

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            using System.Threading;
            using System.Threading.Tasks;
            using Application.Infrastructure.Caching.API.Extensions;
            using Application.Infrastructure.Caching.API.Interfaces;
            using Application.Infrastructure.Persistence.API.Interfaces;
            src/Layers/Application/Storage/Application.Storage.API/Storage/Contacts/Queries/List/ListQuery.cs on lines 1..92
            src/Layers/Application/Storage/Application.Storage.API/Storage/ConversationMessages/Queries/List/ListQuery.cs on lines 1..94

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 456.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            using System.Threading;
            using System.Threading.Tasks;
            using Application.Infrastructure.Caching.API.Extensions;
            using Application.Infrastructure.Caching.API.Interfaces;
            using Application.Infrastructure.Persistence.API.Interfaces;
            src/Layers/Application/Storage/Application.Storage.API/Storage/Contacts/Queries/List/ListQuery.cs on lines 1..92
            src/Layers/Application/Storage/Application.Storage.API/Storage/Conversations/Queries/List/ListQuery.cs on lines 1..95

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 456.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 3 locations. Consider refactoring.
            Open

            using System.Threading;
            using System.Threading.Tasks;
            using Application.Infrastructure.Caching.API.Extensions;
            using Application.Infrastructure.Caching.API.Interfaces;
            using Application.Infrastructure.Persistence.API.Interfaces;
            src/Layers/Application/Storage/Application.Storage.API/Storage/ConversationMessages/Queries/List/ListQuery.cs on lines 1..94
            src/Layers/Application/Storage/Application.Storage.API/Storage/Conversations/Queries/List/ListQuery.cs on lines 1..95

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 456.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 5 locations. Consider refactoring.
            Open

            using System.Threading;
            using System.Threading.Tasks;
            using Application.Infrastructure.Caching.API.Extensions;
            using Application.Infrastructure.Caching.API.Interfaces;
            using Application.Infrastructure.Persistence.API.Interfaces;
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupBlacklists/Queries/List/ListQuery.cs on lines 1..89
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupMessages/Queries/List/ListQuery.cs on lines 1..88
            src/Layers/Application/Storage/Application.Storage.API/Storage/Groups/Queries/List/ListQuery.cs on lines 1..85
            src/Layers/Application/Storage/Application.Storage.API/Storage/UserBlacklists/Queries/List/ListQuery.cs on lines 1..89

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 431.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 5 locations. Consider refactoring.
            Open

            using System.Threading;
            using System.Threading.Tasks;
            using Application.Infrastructure.Caching.API.Extensions;
            using Application.Infrastructure.Caching.API.Interfaces;
            using Application.Infrastructure.Persistence.API.Interfaces;
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupAdministrators/Queries/List/ListQuery.cs on lines 1..89
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupBlacklists/Queries/List/ListQuery.cs on lines 1..89
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupMessages/Queries/List/ListQuery.cs on lines 1..88
            src/Layers/Application/Storage/Application.Storage.API/Storage/Groups/Queries/List/ListQuery.cs on lines 1..85

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 431.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 5 locations. Consider refactoring.
            Open

            using System.Threading;
            using System.Threading.Tasks;
            using Application.Infrastructure.Caching.API.Extensions;
            using Application.Infrastructure.Caching.API.Interfaces;
            using Application.Infrastructure.Persistence.API.Interfaces;
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupAdministrators/Queries/List/ListQuery.cs on lines 1..89
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupBlacklists/Queries/List/ListQuery.cs on lines 1..89
            src/Layers/Application/Storage/Application.Storage.API/Storage/Groups/Queries/List/ListQuery.cs on lines 1..85
            src/Layers/Application/Storage/Application.Storage.API/Storage/UserBlacklists/Queries/List/ListQuery.cs on lines 1..89

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 431.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 5 locations. Consider refactoring.
            Open

            using System.Threading;
            using System.Threading.Tasks;
            using Application.Infrastructure.Caching.API.Extensions;
            using Application.Infrastructure.Caching.API.Interfaces;
            using Application.Infrastructure.Persistence.API.Interfaces;
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupAdministrators/Queries/List/ListQuery.cs on lines 1..89
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupMessages/Queries/List/ListQuery.cs on lines 1..88
            src/Layers/Application/Storage/Application.Storage.API/Storage/Groups/Queries/List/ListQuery.cs on lines 1..85
            src/Layers/Application/Storage/Application.Storage.API/Storage/UserBlacklists/Queries/List/ListQuery.cs on lines 1..89

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 431.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 5 locations. Consider refactoring.
            Open

            using System.Threading;
            using System.Threading.Tasks;
            using Application.Infrastructure.Caching.API.Extensions;
            using Application.Infrastructure.Caching.API.Interfaces;
            using Application.Infrastructure.Persistence.API.Interfaces;
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupAdministrators/Queries/List/ListQuery.cs on lines 1..89
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupBlacklists/Queries/List/ListQuery.cs on lines 1..89
            src/Layers/Application/Storage/Application.Storage.API/Storage/GroupMessages/Queries/List/ListQuery.cs on lines 1..88
            src/Layers/Application/Storage/Application.Storage.API/Storage/UserBlacklists/Queries/List/ListQuery.cs on lines 1..89

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 431.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Method Up has 166 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    protected override void Up(MigrationBuilder migrationBuilder)
                    {
                        migrationBuilder.CreateTable(
                            "AspNetRoles",
                            table => new

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

              using System.Linq;
              using System.Threading;
              using System.Threading.Tasks;
              using Application.Infrastructure.Caching.API.Extensions;
              using Application.Infrastructure.Caching.API.Interfaces;
              src/Layers/Application/Storage/Application.Storage.API/Storage/ConversationMessages/Queries/Details/DetailsQuery.cs on lines 1..86
              src/Layers/Application/Storage/Application.Storage.API/Storage/Conversations/Queries/Details/DetailsQuery.cs on lines 1..85

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 413.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

              using System.Linq;
              using System.Threading;
              using System.Threading.Tasks;
              using Application.Infrastructure.Caching.API.Extensions;
              using Application.Infrastructure.Caching.API.Interfaces;
              src/Layers/Application/Storage/Application.Storage.API/Storage/Contacts/Queries/Details/DetailsQuery.cs on lines 1..85
              src/Layers/Application/Storage/Application.Storage.API/Storage/Conversations/Queries/Details/DetailsQuery.cs on lines 1..85

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 413.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

              using System.Linq;
              using System.Threading;
              using System.Threading.Tasks;
              using Application.Infrastructure.Caching.API.Extensions;
              using Application.Infrastructure.Caching.API.Interfaces;
              src/Layers/Application/Storage/Application.Storage.API/Storage/Contacts/Queries/Details/DetailsQuery.cs on lines 1..85
              src/Layers/Application/Storage/Application.Storage.API/Storage/ConversationMessages/Queries/Details/DetailsQuery.cs on lines 1..86

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 413.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 5 locations. Consider refactoring.
              Open

              using System.Linq;
              using System.Threading;
              using System.Threading.Tasks;
              using Application.Infrastructure.Caching.API.Extensions;
              using Application.Infrastructure.Caching.API.Interfaces;
              src/Layers/Application/Storage/Application.Storage.API/Storage/GroupAdministrators/Queries/Details/DetailsQuery.cs on lines 1..81
              src/Layers/Application/Storage/Application.Storage.API/Storage/GroupMessages/Queries/Details/DetailsQuery.cs on lines 1..81
              src/Layers/Application/Storage/Application.Storage.API/Storage/Groups/Queries/Details/DetailsQuery.cs on lines 1..78
              src/Layers/Application/Storage/Application.Storage.API/Storage/UserBlacklists/Queries/Details/DetailsQuery.cs on lines 1..81

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 388.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Severity
              Category
              Status
              Source
              Language