discourse/discourse

View on GitHub

Showing 1,669 of 1,992 total issues

Avoid too many return statements within this method.
Open

      return render json: failed_json, status: 422
Severity: Major
Found in app/controllers/users_controller.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

                return fail_with('login.incorrect_username_email_or_password')
          Severity: Major
          Found in app/controllers/users_controller.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

                      return render body: nil, status: :forbidden
                Severity: Major
                Found in app/controllers/users_controller.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                      return render_json_error(topic) if topic.errors.present?
                  Severity: Major
                  Found in app/controllers/posts_controller.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                        return if SiteSetting.disable_system_edit_notifications && post_revision.user_id == Discourse::SYSTEM_USER_ID
                    Severity: Major
                    Found in app/services/post_action_notifier.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return notification if notification
                      Severity: Major
                      Found in app/services/post_alerter.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

                              return if post.topic.private_message?
                          Severity: Major
                          Found in app/services/post_action_notifier.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

                                    return if GroupUser.where(
                              Severity: Major
                              Found in app/services/post_alerter.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return proxy_avatar(Discourse.store.cdn_url(optimized.url), upload.created_at)
                                Severity: Major
                                Found in app/controllers/user_avatars_controller.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                      return if notifier_id && MutedUser.where(user_id: user.id, muted_user_id: notifier_id)
                                  Severity: Major
                                  Found in app/services/post_alerter.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return redirect_to cdn_path(avatar_url)
                                    Severity: Major
                                    Found in app/controllers/user_avatars_controller.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                          return if TopicUser.where(
                                      Severity: Major
                                      Found in app/services/post_alerter.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                              return
                                        Severity: Major
                                        Found in app/services/badge_granter.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language