linagora/openpaas-esn

View on GitHub

Showing 726 of 2,177 total issues

Avoid too many return statements within this function.
Open

    return getAvatar(req, res);
Severity: Major
Found in backend/webserver/controllers/avatars.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return next();
    Severity: Major
    Found in backend/webserver/middleware/domain.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              if (typeof directiveAttribute.name !== 'string') { return false; }
      Severity: Major
      Found in backend/core/db/mongo/schemas/injection.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return callback(null, true);
        Severity: Major
        Found in backend/core/domain/index.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            if (typeof value.display.text !== 'string') { return false; }
          Severity: Major
          Found in backend/core/db/mongo/schemas/action.js - About 30 mins to fix

            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

                if (typeof value.url !== 'string') { return false; }
              Severity: Major
              Found in backend/core/db/mongo/schemas/action.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        if (typeof directiveAttribute.value !== 'string') { return false; }
                Severity: Major
                Found in backend/core/db/mongo/schemas/injection.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return callback(new Error('Invalid workflow, must be in ' + _.keys(WORKFLOW_NOTIFICATIONS_TOPIC)));
                  Severity: Major
                  Found in backend/core/collaboration/member/index.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            if (!directiveAttribute.value) { return false; }
                    Severity: Major
                    Found in backend/core/db/mongo/schemas/injection.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

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

                        Avoid too many return statements within this function.
                        Open

                          return result;
                        Severity: Major
                        Found in backend/core/logger/index.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                            if (!validateTuple(value.source)) { return false; }
                          Severity: Major
                          Found in backend/core/db/mongo/schemas/injection.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  if (typeof value.key !== 'string') { return false; }
                            Severity: Major
                            Found in backend/core/db/mongo/schemas/injection.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

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

                                Avoid too many return statements within this function.
                                Open

                                        if (!directiveAttribute.name) { return false; }
                                Severity: Major
                                Found in backend/core/db/mongo/schemas/injection.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        if (injectionValue.attributes && !(injectionValue.attributes instanceof Array)) { return false; }
                                  Severity: Major
                                  Found in backend/core/db/mongo/schemas/injection.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return memberModule.isIndirectMember(collaboration, tuple, callback);
                                    Severity: Major
                                    Found in backend/core/collaboration/permission.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return callback(new Error('Only Restricted and Private collaborations allow membership requests.'));
                                      Severity: Major
                                      Found in backend/core/collaboration/member/index.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                          if (typeof value.display.label !== 'string') { return false; }
                                        Severity: Major
                                        Found in backend/core/db/mongo/schemas/action.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language