django/django

View on GitHub

Showing 1,784 of 2,092 total issues

Avoid too many return statements within this function.
Open

                return "FloatField"
Severity: Major
Found in django/db/backends/oracle/introspection.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return f"EXTRACT({lookup_type} FROM {sql})", params
    Severity: Major
    Found in django/db/backends/mysql/operations.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                          return "IntegerField"
      Severity: Major
      Found in django/db/backends/oracle/introspection.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return "JSONField"
        Severity: Major
        Found in django/db/backends/oracle/introspection.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return False
          Severity: Major
          Found in django/contrib/auth/tokens.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return default_username
            Severity: Major
            Found in django/contrib/auth/management/__init__.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return True
              Severity: Major
              Found in django/contrib/auth/tokens.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return [
                Severity: Major
                Found in django/contrib/contenttypes/admin.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return must_be(
                  Severity: Major
                  Found in django/contrib/admin/checks.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return formats.localize(value)
                    Severity: Major
                    Found in django/contrib/admin/utils.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return list(
                      Severity: Major
                      Found in django/contrib/admin/checks.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return formats.number_format(value, field.decimal_places)
                        Severity: Major
                        Found in django/contrib/admin/utils.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return str(value)
                          Severity: Major
                          Found in django/contrib/admin/utils.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return await sync_to_async(self.update_or_create)(**kwargs)
                            Severity: Major
                            Found in django/contrib/contenttypes/fields.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return GenericRelatedObjectManager
                              Severity: Major
                              Found in django/contrib/contenttypes/fields.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return await sync_to_async(self.create)(**kwargs)
                                Severity: Major
                                Found in django/contrib/contenttypes/fields.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return json.dumps(value, ensure_ascii=False, cls=field.encoder)
                                  Severity: Major
                                  Found in django/contrib/admin/utils.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return formats.localize(timezone.template_localtime(value))
                                    Severity: Major
                                    Found in django/contrib/admin/utils.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return TemplateResponse(
                                      Severity: Major
                                      Found in django/contrib/admin/options.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return display_for_value(value, empty_value_display)
                                        Severity: Major
                                        Found in django/contrib/admin/utils.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language