Anapher/Strive

View on GitHub

Showing 735 of 735 total issues

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

        [Fact]
        public void Validate_ValidBetweenMinMax_ReturnNull()
        {
            // act
            var result = _validator.Validate(new NumericInstruction(0, 1, 0.1M), new NumericAnswer(0.9M));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 11..19
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 21..29
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 31..39
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 41..49
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 51..59

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

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

        [Fact]
        public void Validate_SelectedIsAboveMax_ReturnError()
        {
            // act
            var result = _validator.Validate(new NumericInstruction(null, 5, null), new NumericAnswer(6));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 11..19
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 31..39
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 41..49
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 51..59
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 61..69

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

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

        [Fact]
        public void Validate_SelectedIsBelowMin_ReturnError()
        {
            // act
            var result = _validator.Validate(new NumericInstruction(5, null, null), new NumericAnswer(2));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 21..29
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 31..39
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 41..49
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 51..59
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 61..69

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

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

        [Fact]
        public void Validate_SelectedStepDoesNotMatch_ReturnError()
        {
            // act
            var result = _validator.Validate(new NumericInstruction(null, null, 5), new NumericAnswer(12));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 11..19
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 21..29
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 41..49
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 51..59
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 61..69

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

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

        [Fact]
        public void Validate_ValidDecimalStep_ReturnNull()
        {
            // act
            var result = _validator.Validate(new NumericInstruction(null, null, 0.5M), new NumericAnswer(1.5M));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 11..19
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 21..29
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 31..39
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 41..49
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/Numeric/NumericAnswerValidatorTests.cs on lines 61..69

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

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

            _mediatorMock
                .Setup(x => x.Publish(It.IsAny<ParticipantJoinedNotification>(), It.IsAny<CancellationToken>()))
                .Callback(() => timeParticipantJoinedNotification = counter++);
src/Services/ConferenceManagement/Strive.Core.Tests/Services/ConferenceControl/UseCases/JoinConferenceRequestHandlerTests.cs on lines 82..84

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

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

        [Fact]
        public void Validate_SelectedMoreThanPossible_ReturnNull()
        {
            // act
            var result = _validator.Validate(new SingleChoiceInstruction(new[] {"A", "B", "C"}),
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/SingleChoice/SingleChoiceAnswerValidatorTests.cs on lines 10..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 67.

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

        [Fact]
        public void Validate_SelectedInvalidOption_ReturnError()
        {
            // act
            var result = _validator.Validate(new SingleChoiceInstruction(new[] {"A", "B", "C"}),
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/Types/SingleChoice/SingleChoiceAnswerValidatorTests.cs on lines 21..30

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

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

        public async Task ChangeProducer(string conferenceId, ChangeParticipantProducerDto value)
        {
            await _publishEndpoint.Publish<ChangeParticipantProducer>(
                new {ConferenceId = conferenceId, Type = "ChangeProducer", Payload = value},
                context => SetupContext(context, conferenceId));
src/Services/ConferenceManagement/Strive/Messaging/SFU/SfuNotifier.cs on lines 31..36

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

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

            _mediatorMock
                .Setup(x => x.Send(It.IsAny<EnableParticipantMessagingRequest>(), It.IsAny<CancellationToken>()))
                .Callback(() => timeEnableParticipantMessagingRequest = counter++);
src/Services/ConferenceManagement/Strive.Core.Tests/Services/ConferenceControl/UseCases/JoinConferenceRequestHandlerTests.cs on lines 85..87

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

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

        public async Task Update(string conferenceId, SfuConferenceInfoUpdate value)
        {
            await _publishEndpoint.Publish<MediaStateChanged>(
                new {ConferenceId = conferenceId, Type = "Update", Payload = value},
                context => SetupContext(context, conferenceId));
src/Services/ConferenceManagement/Strive/Messaging/SFU/SfuNotifier.cs on lines 38..43

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

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

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

            var exception = await Assert.ThrowsAsync<IdErrorException>(async () =>
                await useCase.Handle(
                    new UpdateWhiteboardRequest(ConferenceId, RoomId, WhiteboardId, whiteboard => whiteboard),
                    CancellationToken.None));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/WhiteboardService/UseCases/UpdateWhiteboardUseCaseTests.cs on lines 91..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 66.

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

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

            var exception = await Assert.ThrowsAsync<IdErrorException>(async () =>
                await useCase.Handle(
                    new UpdateWhiteboardRequest(ConferenceId, RoomId, WhiteboardId, whiteboard => whiteboard),
                    CancellationToken.None));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/WhiteboardService/UseCases/UpdateWhiteboardUseCaseTests.cs on lines 112..115

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

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 actual = SynchronizedObjectId.Parse(s);

            Assert.Equal(expected.Id, actual.Id);
            Assert.Equal(expected.Parameters, actual.Parameters);
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Chat/Channels/ChannelSerializerTests.cs on lines 23..28

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

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 encoded = ChannelSerializer.Encode(channel);

            Assert.Equal(expected.Id, encoded.Id);
            Assert.Equal(expected.Parameters, encoded.Parameters);
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Synchronization/SynchronizedObjectIdTests.cs on lines 26..31

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

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<ApplyBreakoutRoomRequest>(), It.IsAny<CancellationToken>()))
                .ThrowsAsync(new ConcurrencyException("uff"));
src/Services/ConferenceManagement/Strive.Tests/Hubs/Core/Services/ServiceRequestBuilderTests.cs on lines 110..111

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

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

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

   isTriggeredBy(id: string): boolean {
      const syncObjId = parseSynchronizedObjectId(id);
      return syncObjId.id === this.descriptor.baseId;
   }
src/Web/WebSPA/Client/src/store/signal/synchronization/synchronized-property.ts on lines 64..67

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

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

const presenter: ScenePresenter<ActiveSpeakerScene> = {
   type: 'activeSpeaker',
   AvailableSceneListItem,
   RenderScene: allowOverwrite(RenderActiveSpeaker),
   getAutoHideMediaControls: () => true,
src/Web/WebSPA/Client/src/features/scenes/components/grid/index.tsx on lines 14..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 47.

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

            <ToggleButton
               value={MEDIA_CAN_SHARE_WEBCAM.key}
               aria-label={t('conference.participant_context_menu.allow_webcam')}
            >
               <VideocamIcon fontSize="small" />
src/Web/WebSPA/Client/src/features/conference/components/ParticipantContextMenuTempPermissions.tsx on lines 77..82
src/Web/WebSPA/Client/src/features/conference/components/ParticipantContextMenuTempPermissions.tsx on lines 89..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 47.

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

      consumer.on('producerresume', () => {
         this.signal.notifyConsumerResumed(connection.connectionId, { consumerId: consumer.id });
      });
Severity: Minor
Found in src/Services/SFU/src/lib/media-soup/mediasoup-mixer.ts and 1 other location - About 35 mins to fix
src/Services/SFU/src/lib/media-soup/mediasoup-mixer.ts on lines 157..159

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

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