django/django

View on GitHub

Showing 1,786 of 2,094 total issues

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"{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 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 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 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 (
              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 clause, used_joins if not require_outer else ()
                Severity: Major
                Found in django/db/models/sql/query.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 ceil(dt.month / 3)
                    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 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 f"{dt.year:04d}-{dt.month:02d}-{dt.day:02d} {dt.hour:02d}: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 "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 "X'%s'" % value.hex()
                              Severity: Major
                              Found in django/db/backends/sqlite3/schema.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                return "PositiveSmallIntegerField"
                                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 converted
                                  Severity: Major
                                  Found in django/forms/fields.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return super().get_field_type(data_type, description)
                                    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 "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 str(value)
                                        Severity: Major
                                        Found in django/db/backends/oracle/schema.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language