gitlabhq/gitlabhq

View on GitHub

Showing 2,095 of 3,013 total issues

Avoid too many return statements within this function.
Open

          return this.removeNoteEditForm(editNote);
Severity: Major
Found in app/assets/javascripts/notes.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return stateKey.pipelineBlocked;
    Severity: Major
    Found in app/assets/javascripts/vue_merge_request_widget/stores/get_state_key.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return scaledBinaryFormatter('B', 1);
      Severity: Major
      Found in app/assets/javascripts/lib/utils/unit_format/index.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return axios
                      .put(issueUpdateURL, data)
                      .then(({ data }) => {
                        $dropdown.trigger('loaded.gl.dropdown');
                        // eslint-disable-next-line no-jquery/no-fade
        Severity: Major
        Found in app/assets/javascripts/milestone_select.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return messages.serviceDeskIsNotSupported;
          Severity: Major
          Found in app/assets/javascripts/issuables_list/service_desk_helper.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return suffixFormatter(s__('Units|ms'));
            Severity: Major
            Found in app/assets/javascripts/lib/utils/unit_format/index.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return scaledSIFormatter('B');
              Severity: Major
              Found in app/assets/javascripts/lib/utils/unit_format/index.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return true;
                Severity: Major
                Found in app/assets/javascripts/create_merge_request_dropdown.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return scaledSIFormatter('B', 5);
                  Severity: Major
                  Found in app/assets/javascripts/lib/utils/unit_format/index.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return $dropdown.closest('form').submit();
                    Severity: Major
                    Found in app/assets/javascripts/milestone_select.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return stateKey.notAllowedToMerge;
                      Severity: Major
                      Found in app/assets/javascripts/vue_merge_request_widget/stores/get_state_key.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return scaledBinaryFormatter('B', 4);
                        Severity: Major
                        Found in app/assets/javascripts/lib/utils/unit_format/index.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return stateKey.rebase;
                          Severity: Major
                          Found in app/assets/javascripts/vue_merge_request_widget/stores/get_state_key.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return stateKey.unresolvedDiscussions;
                            Severity: Major
                            Found in app/assets/javascripts/vue_merge_request_widget/stores/get_state_key.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return messages.serviceDeskIsNotEnabled;
                              Severity: Major
                              Found in app/assets/javascripts/issuables_list/service_desk_helper.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  return n__('1 day', '%d days', seconds < ONE_DAY_LIMIT ? 1 : days);
                                Severity: Major
                                Found in app/assets/javascripts/lib/utils/datetime_utility.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return scaledSIFormatter('B', 2);
                                  Severity: Major
                                  Found in app/assets/javascripts/lib/utils/unit_format/index.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return scaledBinaryFormatter('B');
                                    Severity: Major
                                    Found in app/assets/javascripts/lib/utils/unit_format/index.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return this.mergeError ? stateKey.autoMergeFailed : stateKey.autoMergeEnabled;
                                      Severity: Major
                                      Found in app/assets/javascripts/vue_merge_request_widget/stores/get_state_key.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return stateKey.pipelineFailed;
                                        Severity: Major
                                        Found in app/assets/javascripts/vue_merge_request_widget/stores/get_state_key.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language