linagora/openpaas-esn

View on GitHub

Showing 726 of 2,177 total issues

Function ESNAttachmentListController has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function ESNAttachmentListController($q, esnAttachmentListProviders, infiniteScrollHelper, PageAggregatorService, _, ELEMENTS_PER_PAGE) {
Severity: Minor
Found in frontend/js/modules/attachment/list/attachment-list.controller.js - About 45 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if (res && res.body && res.body._embedded && res.body._embedded['dav:addressbook']) {
              addressbooks = _.map(res.body._embedded['dav:addressbook'], book => {
                const uri = book._links.self.href.replace('.json', ''); // No JSON for *DAV URI
    
                return {
    Severity: Major
    Found in modules/linagora.esn.contact/backend/lib/autoconf/index.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

            if (updatedConfig &&
                data.moduleName === moduleName &&
                (!domainId || data.domainId === domainId) &&
                (!userId || data.userId === userId)) {
              listener(updatedConfig);
      Severity: Major
      Found in backend/core/esn-config/esn-config.js - About 40 mins to fix

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

            function davClient(method, path, headers, body, params) {

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

              $q,
              session,
              esnAvailabilityService,
              emailService,
              userUtils

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

                  onSuccess: function(response, data, req, res, callback) {

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

                function sendMail(from, user, message, context, callback) {
              Severity: Minor
              Found in modules/linagora.esn.messaging.email/lib/sender.js - About 35 mins to fix

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

                  function notify(user, message, data, context, callback) {
                Severity: Minor
                Found in modules/linagora.esn.messaging.email/lib/sender.js - About 35 mins to fix

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

                        onError: function(response, data, req, res, callback) {

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

                          intercept: function(rsp, data, req, res, callback) {
                    Severity: Minor
                    Found in modules/linagora.esn.davproxy/backend/webserver/proxy/proxy.js - About 35 mins to fix

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

                        function sendMessageAsEMail(from, user, message, context, callback) {
                      Severity: Minor
                      Found in modules/linagora.esn.messaging.email/lib/handlers/whatsup.js - About 35 mins to fix

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

                                onError: function(response, data, req, res, callback) {

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

                                  onSuccess: function(response, data, req, res, callback) {

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

                                _,
                                asyncAction,
                                contactAddressbookDisplayService,
                                contactAddressbookService,
                                contactService

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

                                  $q,
                                  userAPI,
                                  userUtils,
                                  contactAddressbookParser,
                                  CONTACT_SHARING_INVITE_STATUS

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

                                    function ContactVirtualAddressBook(id, name, loadNextItems, getContactsCount, options) {

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

                                        $q,
                                        _,
                                        davImportService,
                                        ContactAPIClient,
                                        AddressbookShell
                                  Severity: Minor
                                  Found in modules/linagora.esn.contact/frontend/app/contact/contact.service.js - About 35 mins to fix

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

                                      function gracePeriodLiveNotification($log, $q, livenotification, GRACE_EVENTS, _) {

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

                                          $q,
                                          _,
                                          ContactSharee,
                                          CONTACT_SHARING_SHARE_ACCESS,
                                          CONTACT_SHARING_SHARE_ACCESS_CHOICES

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

                                        function exec(base_url, login, password, size, type) {
                                        Severity: Minor
                                        Found in modules/linagora.esn.contact/bin/commands/populate.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language