gitlabhq/gitlabhq

View on GitHub

Showing 2,020 of 2,950 total issues

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 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 scaledBinaryFormatter('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 stateKey.conflicts;
        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.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', 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.shaMismatch;
              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 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', 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 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 stateKey.pipelineFailed;
                      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 $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 scaledSIFormatter('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 method.
                            Open

                                    return unless receiver(namespace_expr) == project_expr
                            Severity: Major
                            Found in rubocop/cop/project_path_helper.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                  return unless result
                              Severity: Major
                              Found in app/models/concerns/diff_positionable_note.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                    return false if last_diff_sha != diff_head_sha
                                Severity: Major
                                Found in app/models/merge_request.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                      return false unless skip_discussions_check || mergeable_discussions_state?
                                  Severity: Major
                                  Found in app/models/merge_request.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                        return false if @type != :mention && unsubscribed?
                                    Severity: Major
                                    Found in app/models/notification_recipient.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                          return false unless suitable_notification_level?
                                      Severity: Major
                                      Found in app/models/notification_recipient.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                            return false if diff_refs && diff_refs != noteable.diff_refs
                                        Severity: Major
                                        Found in app/models/legacy_diff_note.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language