airbnb/caravel

View on GitHub

Showing 2,441 of 6,157 total issues

Avoid too many return statements within this function.
Open

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

    Avoid too many return statements within this function.
    Open

            return f"""'{dttm.strftime("%Y-%m-%d %H:%M:%S.%f")}'"""
    Severity: Major
    Found in superset/models/helpers.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return self.save_or_overwrite_slice(
      Severity: Major
      Found in superset/views/core.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/error_handling.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return verbose_map.get(metric, metric)
            Severity: Major
            Found in superset/utils/core.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return lambda: "".join(random.choices(string.ascii_letters, k=length))
              Severity: Major
              Found in superset/utils/mock_data.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

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

                  Avoid too many return statements within this function.
                  Open

                                  return executor_type, owners[0].username
                  Severity: Major
                  Found in superset/tasks/utils.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return lambda: MINIMUM_DATE + timedelta(days=random.randrange(days_range))
                    Severity: Major
                    Found in superset/utils/mock_data.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return lambda: decimal.Decimal(datetime.now().timestamp() * 1000)
                      Severity: Major
                      Found in superset/utils/mock_data.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return uuid4
                        Severity: Major
                        Found in superset/utils/mock_data.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return format_timedelta(obj)
                          Severity: Major
                          Found in superset/utils/json.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return lambda: random.uniform(-sys.maxsize, sys.maxsize)
                            Severity: Major
                            Found in superset/utils/mock_data.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return lambda: b"UNKNOWN TYPE"
                              Severity: Major
                              Found in superset/utils/mock_data.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                return executor_type, owners[0].username
                                Severity: Major
                                Found in superset/tasks/utils.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return lambda: os.urandom(length)
                                  Severity: Major
                                  Found in superset/utils/mock_data.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

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

                                      Avoid too many return statements within this function.
                                      Open

                                                              return executor_type, user.username
                                      Severity: Major
                                      Found in superset/tasks/utils.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return lambda: str(uuid4())
                                        Severity: Major
                                        Found in superset/utils/mock_data.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language