django/django

View on GitHub

Showing 1,782 of 2,090 total issues

Avoid too many return statements within this function.
Open

        return dt.isocalendar().year
Severity: Major
Found in django/db/backends/sqlite3/_functions.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return f"{dt.year:04d}-{dt.month:02d}-{dt.day:02d} 00:00:00"
    Severity: Major
    Found in django/db/backends/sqlite3/_functions.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

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

        Avoid too many return statements within this function.
        Open

                return f"{dt.hour:02d}:{dt.minute:02d}:{dt.second:02d}"
        Severity: Major
        Found in django/db/backends/sqlite3/_functions.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return f"{dt.year:04d}-{dt.month:02d}-{dt.day:02d} 00:00:00"
          Severity: Major
          Found in django/db/backends/sqlite3/_functions.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return "UUIDField"
            Severity: Major
            Found in django/db/backends/mysql/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 None
                Severity: Major
                Found in django/db/backends/postgresql/schema.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return field_type
                  Severity: Major
                  Found in django/db/backends/mysql/introspection.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return getattr(dt, lookup_type)
                    Severity: Major
                    Found in django/db/backends/sqlite3/_functions.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

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

                        Avoid too many return statements within this function.
                        Open

                                return (
                        Severity: Major
                        Found in django/db/backends/sqlite3/_functions.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return f"{dt.year:04d}-{dt.month:02d}-{dt.day:02d}"
                          Severity: Major
                          Found in django/db/backends/sqlite3/_functions.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return value
                            Severity: Major
                            Found in django/db/backends/base/operations.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return str(value)
                              Severity: Major
                              Found in django/db/backends/oracle/schema.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 data.get(name)
                                  Severity: Major
                                  Found in django/forms/widgets.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return converted
                                    Severity: Major
                                    Found in django/forms/fields.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 "1" if value else "0"
                                        Severity: Major
                                        Found in django/db/backends/oracle/schema.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language