linagora/hublin

View on GitHub

Showing 182 of 306 total issues

Function userTime has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function userTime(attendeeColorsService, $interval, currentConferenceState, LOCAL_VIDEO_ID, moment) {
Severity: Minor
Found in frontend/js/modules/utils/user-time.directive.js - About 35 mins to fix

    Function sendInvitation has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function sendInvitation(conference, creator, member, baseUrl, callback) {
    Severity: Minor
    Found in backend/core/conference/index.js - About 35 mins to fix

      Function updateMemberField has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function updateMemberField(conference, member, field, value, callback) {
      Severity: Minor
      Found in backend/core/conference/index.js - About 35 mins to fix

        Function drawAvatarIfVideoMuted has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          function drawAvatarIfVideoMuted(currentConferenceState, attendeeColorsService, getCoordinatesOfCenteredImage, $log, drawHelper) {
        Severity: Minor
        Found in frontend/js/modules/utils/draw-utils.js - About 35 mins to fix

          Function localSpeakEmitter has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            function localSpeakEmitter($log, $rootScope, currentConferenceState, webRTCService, speakEventEmitterService) {
          Severity: Minor
          Found in frontend/js/modules/speak/local-speak-emitter.directive.js - About 35 mins to fix

            Function localCameraScreenshot has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              function localCameraScreenshot(LOCAL_VIDEO_ID, DEFAULT_AVATAR_SIZE, currentConferenceState, newCanvas, newImage) {
            Severity: Minor
            Found in frontend/js/modules/utils/local-camera-screenshot.service.js - About 35 mins to fix

              Function testPropsAll has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                function testPropsAll(prop, prefixed, elem, value, skipValueTest) {
              Severity: Minor
              Found in frontend/js/thirdparty/modernizr.js - About 35 mins to fix

                Function writeMediaSection has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  function writeMediaSection(transceiver, caps, type, stream, dtlsRole) {
                Severity: Minor
                Found in frontend/js/thirdparty/adapter.js - About 35 mins to fix

                  Function inviteMembers has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    function inviteMembers(conf, user, members, baseUrl, callback) {
                  Severity: Minor
                  Found in backend/webserver/controllers/conferences.js - About 35 mins to fix

                    Function invite has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function invite(conference, creator, members, baseUrl, callback) {
                    Severity: Minor
                    Found in backend/core/conference/index.js - About 35 mins to fix

                      Function conferenceMobileVideo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        function conferenceMobileVideo($timeout, $window, $rootScope, drawVideo, currentConferenceState) {
                      Severity: Minor
                      Found in frontend/js/modules/conference/conference-mobile-video.directive.js - About 35 mins to fix

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

                        module.exports = function(dependencies) {
                          'use strict';
                        
                          var logger = dependencies('logger');
                        
                        
                        Severity: Minor
                        Found in backend/webserver/errors.js - About 35 mins to fix

                        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

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

                        module.exports = dependencies => {
                          const logger = dependencies('logger');
                          const config = require('../../core/esn-config');
                        
                          return {
                        Severity: Minor
                        Found in backend/webserver/denormalizers/conference.js - About 35 mins to fix

                        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

                        Avoid too many return statements within this function.
                        Open

                          return true;
                        Severity: Major
                        Found in backend/core/db/mongo/schemas/tuple.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return false;
                          Severity: Major
                          Found in frontend/js/thirdparty/modernizr.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return adapter;
                            Severity: Major
                            Found in frontend/js/thirdparty/adapter.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                            return Promise.reject(makeError('OperationError',
                                                'Can not add ICE candidate'));
                              Severity: Major
                              Found in frontend/js/thirdparty/adapter.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                          return Promise.reject(makeError('OperationError',
                                              'Can not add ICE candidate'));
                                Severity: Major
                                Found in frontend/js/thirdparty/adapter.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return Promise.resolve();
                                  Severity: Major
                                  Found in frontend/js/thirdparty/adapter.js - About 30 mins to fix

                                    Function mongooseConnect has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    function mongooseConnect(reinit) {
                                      var defaultConfig = config('default');
                                      if (defaultConfig.db && defaultConfig.db.reconnectOnConfigurationChange) {
                                        if (!dbConfigWatcher) {
                                          dbConfigWatcher = configurationWatcher(logger, getDbConfigurationFile(), reinit);
                                    Severity: Minor
                                    Found in backend/core/db/mongo/index.js - About 25 mins to fix

                                    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