airbnb/caravel

View on GitHub

Showing 2,441 of 6,157 total issues

Avoid too many return statements within this function.
Open

            return self.response(404, message=str(ex))
Severity: Major
Found in superset/explore/form_data/api.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return json_error_response(ex.errors, status=ex.status)
    Severity: Major
    Found in superset/databases/api.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return self.response(404, message=str(ex))
      Severity: Major
      Found in superset/explore/api.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return self.response_422(message=str(ex))
        Severity: Major
        Found in superset/annotation_layers/annotations/api.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return self.send_data_payload_response(viz_obj, payload)
          Severity: Major
          Found in superset/views/core.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return json_error_response(utils.error_msg_from_exception(ex))
            Severity: Major
            Found in superset/views/error_handling.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return json_error_response(
              Severity: Major
              Found in superset/views/error_handling.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return json_error_response(
                Severity: Major
                Found in superset/views/core.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return Response(status=204)
                  Severity: Major
                  Found in superset/views/users/api.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return self.generate_json(viz_obj, response_type)
                    Severity: Major
                    Found in superset/views/core.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return json_error_response(utils.error_msg_from_exception(ex), 400)
                      Severity: Major
                      Found in superset/views/core.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return utils.cast_to_boolean(value)
                        Severity: Major
                        Found in superset/models/helpers.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return self.response_422(message=str(ex))
                          Severity: Major
                          Found in superset/annotation_layers/annotations/api.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return value
                            Severity: Major
                            Found in superset/connectors/sqla/models.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return self.response_422(message=str(ex))
                              Severity: Major
                              Found in superset/annotation_layers/api.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return json_error_response(
                                Severity: Major
                                Found in superset/views/core.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                  return utils.cast_to_boolean(value)
                                  Severity: Major
                                  Found in superset/connectors/sqla/models.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return value
                                    Severity: Major
                                    Found in superset/models/helpers.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return json_error_response(utils.error_msg_from_exception(ex), status=422)
                                      Severity: Major
                                      Found in superset/views/error_handling.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return None
                                        Severity: Major
                                        Found in superset/models/slice.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language