django/django

View on GitHub

Showing 1,782 of 2,090 total issues

Avoid too many return statements within this function.
Open

            return obj
Severity: Major
Found in django/db/migrations/autodetector.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                    return [
    Severity: Major
    Found in django/db/migrations/operations/models.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return (
      Severity: Major
      Found in django/db/migrations/autodetector.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return RegexObject(obj)
        Severity: Major
        Found in django/db/migrations/autodetector.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return obj
          Severity: Major
          Found in django/db/migrations/autodetector.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return (
            Severity: Major
            Found in django/db/migrations/autodetector.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                              return [
              Severity: Major
              Found in django/db/migrations/operations/models.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return True
                Severity: Major
                Found in django/db/models/query_utils.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return [
                  Severity: Major
                  Found in django/db/migrations/operations/models.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return super().reduce(operation, app_label)
                    Severity: Major
                    Found in django/db/migrations/operations/models.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                      return datetime.datetime(parsed.year, parsed.month, parsed.day)
                      Severity: Major
                      Found in django/db/models/fields/__init__.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return str  # return empty string
                        Severity: Major
                        Found in django/db/models/fields/__init__.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return []
                          Severity: Major
                          Found in django/db/models/fields/__init__.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return [
                            Severity: Major
                            Found in django/db/models/fields/__init__.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 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 "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 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 "X'%s'" % value.hex()
                                        Severity: Major
                                        Found in django/db/backends/sqlite3/schema.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language