airbnb/caravel

View on GitHub

Showing 2,441 of 6,157 total issues

Avoid too many return statements within this function.
Open

                return False
Severity: Major
Found in superset/sql_parse.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return config["CACHE_DEFAULT_TIMEOUT"]
    Severity: Major
    Found in superset/viz.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return None
      Severity: Major
      Found in superset/common/query_context.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return None
        Severity: Major
        Found in superset/db_engine_specs/bigquery.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return self._run_async(json_body, command)
          Severity: Major
          Found in superset/charts/data/api.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return str(value)
            Severity: Major
            Found in superset/common/query_context_processor.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return datetime.strptime(o["__datetime__"], "%Y-%m-%dT%H:%M:%S")
              Severity: Major
              Found in superset/commands/dashboard/importers/v0.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return self.response_400(message=f"Unsupported result_format: {result_format}")
                Severity: Major
                Found in superset/charts/data/api.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return resp
                  Severity: Major
                  Found in superset/charts/data/api.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return chart_data.datasource_id
                    Severity: Major
                    Found in superset/jinja_context.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return self._get_data_response(
                      Severity: Major
                      Found in superset/charts/data/api.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return Response(
                        Severity: Major
                        Found in superset/charts/data/api.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return SqlMetric(**o["__SqlMetric__"])
                          Severity: Major
                          Found in superset/commands/dashboard/importers/v0.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return value.strftime("%Y")
                            Severity: Major
                            Found in superset/common/query_context_processor.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return o
                              Severity: Major
                              Found in superset/commands/dashboard/importers/v0.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/charts/api.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return ""
                                  Severity: Major
                                  Found in superset/sqllab/exceptions.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return Response(
                                    Severity: Major
                                    Found in superset/charts/api.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return self.response_400(
                                      Severity: Major
                                      Found in superset/charts/data/api.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

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