gitlabhq/gitlabhq

View on GitHub

Showing 1,623 of 2,301 total issues

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;
    Severity: Major
    Found in app/assets/javascripts/notes.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.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 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 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 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 @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 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 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 if diff_refs && diff_refs != noteable.diff_refs
                        Severity: Major
                        Found in app/models/legacy_diff_note.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                              return if verify_recaptcha
                          Severity: Major
                          Found in app/controllers/registrations_controller.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                  return 'user_remove_from_group' if event == :destroy
                            Severity: Major
                            Found in app/services/system_hooks_service.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                    return 'user_update_for_group'  if event == :update
                              Severity: Major
                              Found in app/services/system_hooks_service.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                      return error("Milestone(s) not found: #{inexistent_milestones.join(', ')}", 400) if inexistent_milestones.any?
                                Severity: Major
                                Found in app/services/releases/update_service.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        return true unless source_sha = merge_request.source_branch_sha
                                  Severity: Major
                                  Found in app/services/merge_requests/mergeability_check_service.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return VALID
                                    Severity: Major
                                    Found in app/services/access_token_validation_service.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            return 4 if @condition.scope == DeclarativePolicy.preferred_scope
                                      Severity: Major
                                      Found in lib/declarative_policy/condition.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return SERVICES::SystemDashboardService if system_dashboard?(params[:dashboard_path])
                                        Severity: Major
                                        Found in lib/gitlab/metrics/dashboard/service_selector.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language