Anapher/Strive

View on GitHub

Showing 250 of 735 total issues

Method OpenBreakoutRoomsDto has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public record OpenBreakoutRoomsDto(int Amount, DateTimeOffset? Deadline, string? Description,
        string[][]? AssignedRooms);

    Method BuildSceneStack has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            private async Task<IReadOnlyList<IScene>> BuildSceneStack(string conferenceId, string roomId,
                ActiveScene activeScene, SceneState currentState, IReadOnlyList<IScene> availableScenes)

      Method IsUpdateRequired has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              public ValueTask<SceneUpdate> IsUpdateRequired(string conferenceId, string roomId, string syncObjId,
                  object synchronizedObject, object? previousValue)

        Method IsUpdateRequired has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                public async ValueTask<SceneUpdate> IsUpdateRequired(string conferenceId, string roomId, string syncObjId,
                    object synchronizedObject, object? previousValue)

          Method SendEquipmentCommandRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public record SendEquipmentCommandRequest(Participant Participant, string ConnectionId, ProducerSource Source,
                  string? DeviceId, EquipmentCommandType Action) : IRequest;

            Method FetchSceneProvidersWithRequiredUpdate has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                        string conferenceId, string roomId, string syncObjId, object syncObj, object? previousSyncObj)

              Method TestTranslateStartEndIndex has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      public void TestTranslateStartEndIndex(int start, int end, int total, int expectedStart, int expectedEnd)

                Method InternalIsUpdateRequired has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        protected override async ValueTask<bool> InternalIsUpdateRequired(string conferenceId, string roomId,
                            string syncObjId, object synchronizedObject, object? previousValue)

                  Method InternalIsUpdateRequired has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          protected override async ValueTask<bool> InternalIsUpdateRequired(string conferenceId, string roomId,
                              string syncObjId, object synchronizedObject, object? previousValue)

                    Method SceneBuilderContext has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        public record SceneBuilderContext(string ConferenceId, string RoomId, IEnumerable<IScene> AvailableScenes,
                            SceneOptions Options, IReadOnlyList<IScene> PreviousStack);

                      Method PushLiveActionRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public record PushLiveActionRequest(string ConferenceId, string RoomId, string ParticipantId, string WhiteboardId,
                              CanvasLiveAction Action) : IRequest;

                        Method InternalIsUpdateRequired has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                protected override ValueTask<bool> InternalIsUpdateRequired(string conferenceId, string roomId,
                                    string syncObjId, object synchronizedObject, object? previousValue)

                          Method InternalIsUpdateRequired has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  protected override async ValueTask<bool> InternalIsUpdateRequired(string conferenceId, string roomId,
                                      string syncObjId, object synchronizedObject, object? previousValue)

                            Method InternalIsUpdateRequired has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    protected override ValueTask<bool> InternalIsUpdateRequired(string conferenceId, string roomId,
                                        string syncObjId, object synchronizedObject, object? previousValue)

                              Method IsUpdateRequired has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      public async ValueTask<SceneUpdate> IsUpdateRequired(string conferenceId, string roomId, string syncObjId,
                                          object synchronizedObject, object? previousValue)

                                Method Poll has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    public record Poll(string Id, PollInstruction Instruction, PollConfig Config, string? RoomId,
                                        DateTimeOffset CreatedOn);
                                Severity: Minor
                                Found in src/Services/ConferenceManagement/Strive.Core/Services/Poll/Poll.cs - About 35 mins to fix

                                  Method ChatMessageReceivedNotification has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      public record ChatMessageReceivedNotification(string ConferenceId, IReadOnlyList<Participant> Participants,
                                          ChatMessage ChatMessage, ChatChannel Channel, int TotalMessagesInChannel) : INotification;

                                    Method PushActionRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        public record PushActionRequest (string ConferenceId, string RoomId, string WhiteboardId, string ParticipantId,
                                            CanvasPushAction Action) : IRequest<WhiteboardUpdatedResponse>;

                                      Method SynchronizedWhiteboardInfo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          public record SynchronizedWhiteboardInfo(string FriendlyName, bool AnyoneCanEdit, WhiteboardCanvas Canvas,
                                              IReadOnlyDictionary<string, SynchronizedParticipantState> ParticipantStates, int Version);

                                        Function ActionIcon has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        function ActionIcon(source: ProducerSource, action: EquipmentCommandAction) {
                                           switch (source) {
                                              case 'mic':
                                              case 'loopback-mic':
                                                 switch (action) {

                                        Cognitive Complexity

                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                        A method's cognitive complexity is based on a few simple rules:

                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                        • Code is considered more complex for each "break in the linear flow of the code"
                                        • Code is considered more complex when "flow breaking structures are nested"

                                        Further reading

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language