Anapher/Strive

View on GitHub

Showing 735 of 735 total issues

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

        [Fact]
        public void Validate_ValidCron_Valid()
        {
            // arrange
            var data = GetValidConferenceData();
src/Services/ConferenceManagement/Strive.Core.Tests/Services/ConferenceManagement/ConferenceDataValidatorTests.cs on lines 49..61

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

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

   return (
      <div className={classes.root}>
         <Typography color="textSecondary">{t('conference.chat.new_chat_info')}</Typography>
      </div>
   );
Severity: Minor
Found in src/Web/WebSPA/Client/src/features/chat/components/NewChat.tsx and 1 other location - About 40 mins to fix
src/Web/WebSPA/Client/src/features/settings/components/ScreenSettings.tsx on lines 33..37

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

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

      <List
         aria-labelledby="command-history-subheader"
         subheader={
            <ListSubheader component="div" id="command-history-subheader" disableSticky>
               {t('conference.equipment.command_history')}
src/Web/WebSPA/Client/src/features/equipment/components/AvailableEquipmentTable.tsx on lines 15..38

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

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

type PollContextMenuProps = {
   open: boolean;
   anchorEl: PopoverProps['anchorEl'];
   onClose: () => void;

src/Web/WebSPA/Client/src/features/scenes/components/SceneListItemWithPopper.tsx on lines 6..12

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

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

export const selectParticipant: (state: RootState, participantId: string | undefined) => Participant | undefined = (
   state: RootState,
   participantId: string | undefined,
) => {
   if (!participantId) return undefined;
Severity: Minor
Found in src/Web/WebSPA/Client/src/features/conference/selectors.ts and 1 other location - About 40 mins to fix
src/Web/WebSPA/Client/src/features/media/selectors.ts on lines 49..54

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

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

      <List
         aria-labelledby="available-devices-subheader"
         subheader={
            <ListSubheader component="div" id="available-devices-subheader" disableSticky>
               {t('conference.equipment.available_devices')}
src/Web/WebSPA/Client/src/features/equipment/components/CommandHistory.tsx on lines 50..73

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

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

export default function* mySaga() {
   yield showErrorOn(createRooms.returnAction);
   yield showErrorOn(removeRooms.returnAction);
   yield showErrorOn(switchRoom.returnAction);
}
Severity: Minor
Found in src/Web/WebSPA/Client/src/features/rooms/sagas.ts and 1 other location - About 40 mins to fix
src/Web/WebSPA/Client/src/features/breakout-rooms/sagas.ts on lines 4..8

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

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

export default function* mySaga() {
   yield showErrorOn(openBreakoutRooms.returnAction);
   yield showErrorOn(closeBreakoutRooms.returnAction);
   yield showErrorOn(changeBreakoutRooms.returnAction);
}
Severity: Minor
Found in src/Web/WebSPA/Client/src/features/breakout-rooms/sagas.ts and 1 other location - About 40 mins to fix
src/Web/WebSPA/Client/src/features/rooms/sagas.ts on lines 4..8

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

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

            var error = await Assert.ThrowsAsync<IdErrorException>(async () =>
                await useCase.Handle(
                    new SubmitAnswerRequest(_participant, PollId, new MultipleChoiceAnswer(new[] {"A"})),
                    CancellationToken.None));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 58..61
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 75..78
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 111..114
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 145..148

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

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

            var error = await Assert.ThrowsAsync<IdErrorException>(async () =>
                await useCase.Handle(
                    new SubmitAnswerRequest(_participant, PollId, new MultipleChoiceAnswer(new[] {"A"})),
                    CancellationToken.None));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 75..78
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 93..96
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 111..114
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 145..148

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

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

            var error = await Assert.ThrowsAsync<IdErrorException>(async () =>
                await useCase.Handle(
                    new SubmitAnswerRequest(_participant, PollId, new MultipleChoiceAnswer(new[] {"A"})),
                    CancellationToken.None));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 58..61
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 93..96
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 111..114
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 145..148

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

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

            var error = await Assert.ThrowsAsync<IdErrorException>(async () =>
                await useCase.Handle(
                    new SubmitAnswerRequest(_participant, PollId, new MultipleChoiceAnswer(new[] {"not existing"})),
                    CancellationToken.None));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 58..61
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 75..78
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 93..96
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 145..148

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

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

            var error = await Assert.ThrowsAsync<IdErrorException>(async () =>
                await useCase.Handle(
                    new SubmitAnswerRequest(_participant, PollId, new MultipleChoiceAnswer(new[] {"A"})),
                    CancellationToken.None));
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 58..61
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 75..78
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 93..96
src/Services/ConferenceManagement/Strive.Core.Tests/Services/Poll/UseCase/SubmitAnswerUseCaseTests.cs on lines 111..114

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

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 (conferenceId, _) = GetContextParticipant();

            return GetInvoker().Create(new ChangeBreakoutRoomsRequest(conferenceId, dto))
                .RequirePermissions(DefinedPermissions.Rooms.CanCreateAndRemove).ConferenceMustBeOpen().Send();
Severity: Minor
Found in src/Services/ConferenceManagement/Strive/Hubs/Core/CoreHub.cs and 1 other location - About 40 mins to fix
src/Services/ConferenceManagement/Strive/Hubs/Core/CoreHub.cs on lines 228..233

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

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 (conferenceId, _) = GetContextParticipant();

            return GetInvoker().Create(new RemoveRoomsRequest(conferenceId, dto))
                .RequirePermissions(DefinedPermissions.Rooms.CanCreateAndRemove).ConferenceMustBeOpen().Send();
Severity: Minor
Found in src/Services/ConferenceManagement/Strive/Hubs/Core/CoreHub.cs and 1 other location - About 40 mins to fix
src/Services/ConferenceManagement/Strive/Hubs/Core/CoreHub.cs on lines 263..268

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

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

Consider simplifying this complex logical expression.
Open

   if (!left || !top || !groupLeft || !groupTop || !groupWidth || !groupHeight)
      return { left: undefined, top: undefined };
Severity: Major
Found in src/Web/WebSPA/Client/src/features/whiteboard/fabric-utils.ts - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

          if (!left || !top || !groupLeft || !groupTop || !groupWidth || !groupHeight) return;
    Severity: Major
    Found in src/Web/WebSPA/Client/src/features/whiteboard/fabric-utils.ts - About 40 mins to fix

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

                  aggregator.Append(new SfuConferenceInfoUpdate(ImmutableDictionary<string, string>.Empty,
                      new Dictionary<string, SfuParticipantPermissions>
                      {
                          {"participant1", new SfuParticipantPermissions(true, false, false)},
                      }, Array.Empty<string>()));
      src/Services/ConferenceManagement/Strive.Tests/Messaging/SFU/SfuConferenceInfoUpdateAggregatorTests.cs on lines 86..90

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

      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

                  aggregator.Append(new SfuConferenceInfoUpdate(ImmutableDictionary<string, string>.Empty,
                      new Dictionary<string, SfuParticipantPermissions>
                      {
                          {"participant1", new SfuParticipantPermissions(false, false, false)},
                      }, Array.Empty<string>()));
      src/Services/ConferenceManagement/Strive.Tests/Messaging/SFU/SfuConferenceInfoUpdateAggregatorTests.cs on lines 80..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 70.

      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 System;
      using System.Linq.Expressions;
      using Strive.Core.Domain.Entities;
      using SpeciVacation;
      
      
      src/Services/ConferenceManagement/Strive.Core/Specifications/ConferenceLinkByParticipant.cs on lines 1..23

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

      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