mysociety/alaveteli

View on GitHub

Showing 421 of 434 total issues

Avoid too many return statements within this method.
Open

    return 0
Severity: Major
Found in script/handle-mail-replies.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

        return false if auto_submitted?
    Severity: Major
    Found in app/models/raw_email.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

          return 2 if MailHandler::ReplyHandler.is_oof?(message)
      Severity: Major
      Found in script/handle-mail-replies.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

              return true
        Severity: Major
        Found in app/models/info_request_event.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

              return render_new_preview if params[:preview].to_i == 1
          Severity: Major
          Found in app/controllers/request_controller.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                    return false if data[:hidden_rows] == total_count && total_count <= 50
              Severity: Major
              Found in gems/excel_analyzer/lib/excel_analyzer/xlsx_analyzer.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

                        return true if @user
                    Severity: Major
                    Found in app/controllers/user_controller.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            handle_blocked_ip(@info_request) && return
                      Severity: Major
                      Found in app/controllers/request_controller.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

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

                                Avoid too many return statements within this method.
                                Open

                                      redirect_to frontpage_path and return
                                Severity: Major
                                Found in app/controllers/request_controller.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        handle_spam_subject(@info_request.user) && return
                                  Severity: Major
                                  Found in app/controllers/request_controller.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return true if subject.start_with? "out of office autoreply:"
                                    Severity: Major
                                    Found in lib/mail_handler/reply_handler.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            return true if subject.end_with? "is out of the office"
                                      Severity: Major
                                      Found in lib/mail_handler/reply_handler.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                              return true if subject == "out of office"
                                        Severity: Major
                                        Found in lib/mail_handler/reply_handler.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language