Anapher/Strive

View on GitHub

Showing 735 of 735 total issues

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

            await user.SyncObjects.AssertSyncObject<SynchronizedEquipment>(
                SynchronizedEquipment.SyncObjId(user.User.Sub),
                syncEquipment => { Assert.Single(syncEquipment.Connections); });
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 225..226
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 233..234
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 349..350
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 438..439

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 61.

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 7 locations. Consider refactoring.
Open

            var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                new PollConfig("A or B?", true, false), new PollState(true, false), null);
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

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 61.

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 7 locations. Consider refactoring.
Open

            var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                new PollConfig("A or B?", true, false), new PollState(true, false), null);
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

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 61.

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 Microsoft.Extensions.Options;
using Strive.Infrastructure.KeyValue;
using Strive.Infrastructure.KeyValue.InMemory;
using Strive.Infrastructure.Tests.KeyValue.Scripts.Base;

src/Services/ConferenceManagement/Strive.Infrastructure.Tests/KeyValue/Scripts/JoinedParticipantsRepository_RemoveParticipantSafe_InMemoryTests.cs on lines 1..19
src/Services/ConferenceManagement/Strive.Infrastructure.Tests/KeyValue/Scripts/RoomRepository_SetParticipantRoom_InMemory.cs on lines 1..16

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 61.

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 7 locations. Consider refactoring.
Open

            var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                new PollConfig("A or B?", false, false), new PollState(true, false), null);
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

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 61.

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 6 locations. Consider refactoring.
Open

            await user.SyncObjects.AssertSyncObject<SynchronizedEquipment>(
                SynchronizedEquipment.SyncObjId(user.User.Sub),
                syncEquipment => { Assert.Empty(syncEquipment.Connections); });
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 225..226
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 233..234
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 349..350
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 438..439

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 61.

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 6 locations. Consider refactoring.
Open

            await connection.SyncObjects.AssertSyncObject<SynchronizedPollAnswers>(
                SynchronizedPollAnswers.SyncObjId(connection.User.Sub), results => { Assert.Empty(results.Answers); });
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 225..226
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 233..234
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 349..350

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 61.

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 7 locations. Consider refactoring.
Open

            var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                new PollConfig("A or B?", true, false), new PollState(true, false), null);
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

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 61.

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 7 locations. Consider refactoring.
Open

            var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                new PollConfig("A or B?", true, false), new PollState(false, false), null);
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217

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 61.

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 6 locations. Consider refactoring.
Open

            await connection.SyncObjects.AssertSyncObject<SynchronizedPollAnswers>(
                SynchronizedPollAnswers.SyncObjId(connection.User.Sub), results => { Assert.Single(results.Answers); });
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 233..234
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 349..350
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 438..439

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 61.

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 6 locations. Consider refactoring.
Open

            await connection.SyncObjects.AssertSyncObject<SynchronizedPollAnswers>(
                SynchronizedPollAnswers.SyncObjId(connection.User.Sub), syncObj => { Assert.Empty(syncObj.Answers); });
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 225..226
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 233..234
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 438..439

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 61.

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 6 locations. Consider refactoring.
Open

            await connection.SyncObjects.AssertSyncObject<SynchronizedPollAnswers>(
                SynchronizedPollAnswers.SyncObjId(connection.User.Sub), results => { Assert.Empty(results.Answers); });
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 225..226
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 349..350
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 438..439

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 61.

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 Microsoft.Extensions.Options;
using Strive.Infrastructure.KeyValue;
using Strive.Infrastructure.KeyValue.InMemory;
using Strive.Infrastructure.Tests.KeyValue.Scripts.Base;

src/Services/ConferenceManagement/Strive.Infrastructure.Tests/KeyValue/Scripts/JoinedParticipantsRepository_RemoveParticipant_InMemoryTests.cs on lines 1..19
src/Services/ConferenceManagement/Strive.Infrastructure.Tests/KeyValue/Scripts/RoomRepository_SetParticipantRoom_InMemory.cs on lines 1..16

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 61.

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 Microsoft.Extensions.Options;
using Strive.Infrastructure.KeyValue;
using Strive.Infrastructure.KeyValue.InMemory;
using Strive.Infrastructure.Tests.KeyValue.Scripts.Base;

src/Services/ConferenceManagement/Strive.Infrastructure.Tests/KeyValue/Scripts/JoinedParticipantsRepository_RemoveParticipantSafe_InMemoryTests.cs on lines 1..19
src/Services/ConferenceManagement/Strive.Infrastructure.Tests/KeyValue/Scripts/JoinedParticipantsRepository_RemoveParticipant_InMemoryTests.cs on lines 1..19

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 61.

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

        {
            _utils.Setup(x => x.CreatePatch(It.IsAny<CanvasObject>(), It.IsAny<CanvasObject>())).Returns(_undoPatch);
        }
src/Services/ConferenceManagement/Strive.Core.Tests/Services/BreakoutRooms/Internal/ApplyBreakoutRoomUseCaseTests.cs on lines 105..108

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 61.

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

        {
            _mediator.Setup(x => x.Send(It.IsAny<FetchSynchronizedObjectRequest>(), It.IsAny<CancellationToken>()))
                .ReturnsAsync(syncRooms);
        }
src/Services/ConferenceManagement/Strive.Core.Tests/Services/WhiteboardService/Actions/UpdateCanvasActionTests.cs on lines 17..19

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 61.

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

        {
            var container = BuildContainerWithLogger();

            return new ServiceRequestBuilderSuccessOrError<TResponse>(requestFactory, _mediator.Object,
                new ServiceInvokerContext(new TestHub(token), container, new Participant()));
src/Services/ConferenceManagement/Strive.Tests/Hubs/Core/Services/ServiceRequestBuilderTests.cs on lines 30..35

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 61.

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

using Strive.Infrastructure.Redis.Tests.Redis;
using Strive.Infrastructure.Tests.KeyValue.Scripts.Base;
using Strive.IntegrationTests._Helpers;
using Xunit;

src/Services/ConferenceManagement/Strive.Infrastructure.Redis.Tests/Redis/Scripts/JoinedParticipantsRepository_RemoveParticipantSafe_Redis.cs on lines 1..17

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 61.

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

        {
            var container = BuildContainerWithLogger();

            return new ServiceRequestBuilder<TResponse>(requestFactory, _mediator.Object,
                new ServiceInvokerContext(new TestHub(token), container, new Participant()));
src/Services/ConferenceManagement/Strive.Tests/Hubs/Core/Services/ServiceRequestBuilderTests.cs on lines 39..44

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 61.

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

using Strive.Infrastructure.Redis.Tests.Redis;
using Strive.Infrastructure.Tests.KeyValue.Scripts.Base;
using Strive.IntegrationTests._Helpers;
using Xunit;

src/Services/ConferenceManagement/Strive.Infrastructure.Redis.Tests/Redis/Scripts/RoomRepository_SetParticipantRoom_Redis.cs on lines 1..17

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 61.

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