django/django

View on GitHub

Showing 1,784 of 2,092 total issues

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 ", ".join(str(v) for v in 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 HttpResponseRedirect(request.get_full_path())
      Severity: Major
      Found in django/contrib/admin/options.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return []
        Severity: Major
        Found in django/contrib/admin/checks.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

            Avoid too many return statements within this function.
            Open

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

              Avoid too many return statements within this function.
              Open

                          return "%s__icontains" % field_name
              Severity: Major
              Found in django/contrib/admin/options.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return HttpResponseRedirect(request.get_full_path())
                Severity: Major
                Found in django/contrib/admin/options.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 [
                    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)
                      Severity: Major
                      Found in django/contrib/admin/utils.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return format_html('<a href="{}">{}</a>', value.url, 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 formats.number_format(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.get_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 (x.value, y.value)
                              Severity: Major
                              Found in django/contrib/gis/gdal/geometries.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return self.expand_to_include(args)
                                Severity: Major
                                Found in django/contrib/gis/gdal/envelope.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                  return cls.time_strings["future-hour"] % {"count": count}
                                  Severity: Major
                                  Found in django/contrib/humanize/templatetags/humanize.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                    return cls.time_strings["past-minute"] % {"count": count}
                                    Severity: Major
                                    Found in django/contrib/humanize/templatetags/humanize.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                      return cls.time_strings["future-second"] % {"count": delta.seconds}
                                      Severity: Major
                                      Found in django/contrib/humanize/templatetags/humanize.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return defaultfilters.date(value, arg)
                                        Severity: Major
                                        Found in django/contrib/humanize/templatetags/humanize.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language