django/django

View on GitHub

Showing 1,782 of 2,090 total issues

Avoid too many return statements within this function.
Open

        return self._accept(request)
Severity: Major
Found in django/middleware/csrf.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                    return self._reject(
    Severity: Major
    Found in django/middleware/csrf.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return self._reject(request, exc.reason)
      Severity: Major
      Found in django/middleware/csrf.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return kwargs
        Severity: Major
        Found in django/template/base.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return self._reject(request, exc.reason)
          Severity: Major
          Found in django/middleware/csrf.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return response
            Severity: Major
            Found in django/middleware/cache.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                              return kwargs
              Severity: Major
              Found in django/template/base.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return "th"
                Severity: Major
                Found in django/utils/dateformat.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return mark_safe(word)
                  Severity: Major
                  Found in django/utils/html.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return settings.LANGUAGE_CODE
                    Severity: Major
                    Found in django/utils/translation/trans_real.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return get_supported_language_variant(settings.LANGUAGE_CODE)
                      Severity: Major
                      Found in django/utils/translation/trans_real.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return (not url_info.netloc or url_info.netloc in allowed_hosts) and (
                        Severity: Major
                        Found in django/utils/http.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return escape(word)
                          Severity: Major
                          Found in django/utils/html.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return word
                            Severity: Major
                            Found in django/utils/html.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                                  return False, project_state
                              Severity: Major
                              Found in django/db/migrations/executor.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return _precondition_failed(request)
                                Severity: Major
                                Found in django/utils/cache.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return serializer_cls(value)
                                  Severity: Major
                                  Found in django/db/migrations/serializer.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return DeconstructableSerializer(value)
                                    Severity: Major
                                    Found in django/db/migrations/serializer.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return response
                                      Severity: Major
                                      Found in django/utils/cache.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return value
                                        Severity: Major
                                        Found in django/utils/formats.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language