tomi77/tastypie-sorl-thumbnail

View on GitHub

Showing 176 of 176 total issues

Avoid too many return statements within this function.
Open

        return jQuery.makeArray( selector, this );
Severity: Major
Found in docs/html/_static/jquery-1.11.1.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return typeof rootjQuery.ready !== "undefined" ?
                    rootjQuery.ready( selector ) :
                    // Execute immediately if ready is not present
                    selector( jQuery );
    Severity: Major
    Found in docs/html/_static/jquery-1.11.1.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          if (className != toString.call(b)) return false;
      Severity: Major
      Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;
        Severity: Major
        Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                if (stack[length] == a) return true;
          Severity: Major
          Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return ret == null ?
                            undefined :
                            ret;
            Severity: Major
            Found in docs/html/_static/jquery-1.11.1.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  if (typeof a != 'object' || typeof b != 'object') return false;
              Severity: Major
              Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

                Line too long (83 > 79 characters)
                Open

                        content = response.content.decode('utf-8') if six.PY3 else response.content
                Severity: Minor
                Found in testapp/tests.py by pep8

                Limit all lines to a maximum of 79 characters.

                There are still many devices around that are limited to 80 character
                lines; plus, limiting windows to 80 characters makes it possible to
                have several windows side-by-side.  The default wrapping on such
                devices looks ugly.  Therefore, please limit all lines to a maximum
                of 79 characters. For flowing long blocks of text (docstrings or
                comments), limiting the length to 72 characters is recommended.
                
                Reports error E501.

                Module level import not at top of file
                Open

                from tastypie_sorl_thumbnail import __author__, __version__
                Severity: Minor
                Found in docs_src/conf.py by pep8

                Place imports at the top of the file.

                Always put imports at the top of the file, just after any module
                comments and docstrings, and before module globals and constants.
                
                Okay: import os
                Okay: # this is a comment\nimport os
                Okay: '''this is a module docstring'''\nimport os
                Okay: r'''this is a module docstring'''\nimport os
                Okay:
                try:\n\timport x\nexcept ImportError:\n\tpass\nelse:\n\tpass\nimport y
                Okay:
                try:\n\timport x\nexcept ImportError:\n\tpass\nfinally:\n\tpass\nimport y
                E402: a=1\nimport os
                E402: 'One string'\n"Two string"\nimport os
                E402: a=1\nfrom sys import x
                
                Okay: if x:\n    import os

                Too many blank lines (2)
                Open

                    class ThumbnailFieldTestCaseBase(ResourceTestCaseMixin, TestCase):
                Severity: Minor
                Found in testapp/tests.py by pep8

                Separate top-level function and class definitions with two blank lines.

                Method definitions inside a class are separated by a single blank
                line.
                
                Extra blank lines may be used (sparingly) to separate groups of
                related functions.  Blank lines may be omitted between a bunch of
                related one-liners (e.g. a set of dummy implementations).
                
                Use blank lines in functions, sparingly, to indicate logical
                sections.
                
                Okay: def a():\n    pass\n\n\ndef b():\n    pass
                Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                Okay: default = 1\nfoo = 1
                Okay: classify = 1\nfoo = 1
                
                E301: class Foo:\n    b = 0\n    def bar():\n        pass
                E302: def a():\n    pass\n\ndef b(n):\n    pass
                E302: def a():\n    pass\n\nasync def b(n):\n    pass
                E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                E303: def a():\n\n\n\n    pass
                E304: @decorator\n\ndef a():\n    pass
                E305: def a():\n    pass\na()
                E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                Too many blank lines (2)
                Open

                    class ThumbnailFieldTestCaseBase(ResourceTestCase):
                Severity: Minor
                Found in testapp/tests.py by pep8

                Separate top-level function and class definitions with two blank lines.

                Method definitions inside a class are separated by a single blank
                line.
                
                Extra blank lines may be used (sparingly) to separate groups of
                related functions.  Blank lines may be omitted between a bunch of
                related one-liners (e.g. a set of dummy implementations).
                
                Use blank lines in functions, sparingly, to indicate logical
                sections.
                
                Okay: def a():\n    pass\n\n\ndef b():\n    pass
                Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                Okay: default = 1\nfoo = 1
                Okay: classify = 1\nfoo = 1
                
                E301: class Foo:\n    b = 0\n    def bar():\n        pass
                E302: def a():\n    pass\n\ndef b(n):\n    pass
                E302: def a():\n    pass\n\nasync def b(n):\n    pass
                E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                E303: def a():\n\n\n\n    pass
                E304: @decorator\n\ndef a():\n    pass
                E305: def a():\n    pass\na()
                E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                Module level import not at top of file
                Open

                from django.core import management
                Severity: Minor
                Found in manage.py by pep8

                Place imports at the top of the file.

                Always put imports at the top of the file, just after any module
                comments and docstrings, and before module globals and constants.
                
                Okay: import os
                Okay: # this is a comment\nimport os
                Okay: '''this is a module docstring'''\nimport os
                Okay: r'''this is a module docstring'''\nimport os
                Okay:
                try:\n\timport x\nexcept ImportError:\n\tpass\nelse:\n\tpass\nimport y
                Okay:
                try:\n\timport x\nexcept ImportError:\n\tpass\nfinally:\n\tpass\nimport y
                E402: a=1\nimport os
                E402: 'One string'\n"Two string"\nimport os
                E402: a=1\nfrom sys import x
                
                Okay: if x:\n    import os

                Module level import not at top of file
                Open

                import sphinx_rtd_theme
                Severity: Minor
                Found in docs_src/conf.py by pep8

                Place imports at the top of the file.

                Always put imports at the top of the file, just after any module
                comments and docstrings, and before module globals and constants.
                
                Okay: import os
                Okay: # this is a comment\nimport os
                Okay: '''this is a module docstring'''\nimport os
                Okay: r'''this is a module docstring'''\nimport os
                Okay:
                try:\n\timport x\nexcept ImportError:\n\tpass\nelse:\n\tpass\nimport y
                Okay:
                try:\n\timport x\nexcept ImportError:\n\tpass\nfinally:\n\tpass\nimport y
                E402: a=1\nimport os
                E402: 'One string'\n"Two string"\nimport os
                E402: a=1\nfrom sys import x
                
                Okay: if x:\n    import os

                Line too long (126 > 79 characters)
                Open

                        mock_get_thumbnail.side_effect = lambda path, *args, **kwargs: ImageFile('cache/%s' % path[len(settings.MEDIA_ROOT):])
                Severity: Minor
                Found in testapp/tests.py by pep8

                Limit all lines to a maximum of 79 characters.

                There are still many devices around that are limited to 80 character
                lines; plus, limiting windows to 80 characters makes it possible to
                have several windows side-by-side.  The default wrapping on such
                devices looks ugly.  Therefore, please limit all lines to a maximum
                of 79 characters. For flowing long blocks of text (docstrings or
                comments), limiting the length to 72 characters is recommended.
                
                Reports error E501.

                Line too long (83 > 79 characters)
                Open

                        content = response.content.decode('utf-8') if six.PY3 else response.content
                Severity: Minor
                Found in testapp/tests.py by pep8

                Limit all lines to a maximum of 79 characters.

                There are still many devices around that are limited to 80 character
                lines; plus, limiting windows to 80 characters makes it possible to
                have several windows side-by-side.  The default wrapping on such
                devices looks ugly.  Therefore, please limit all lines to a maximum
                of 79 characters. For flowing long blocks of text (docstrings or
                comments), limiting the length to 72 characters is recommended.
                
                Reports error E501.

                Line too long (83 > 79 characters)
                Open

                        content = response.content.decode('utf-8') if six.PY3 else response.content
                Severity: Minor
                Found in testapp/tests.py by pep8

                Limit all lines to a maximum of 79 characters.

                There are still many devices around that are limited to 80 character
                lines; plus, limiting windows to 80 characters makes it possible to
                have several windows side-by-side.  The default wrapping on such
                devices looks ugly.  Therefore, please limit all lines to a maximum
                of 79 characters. For flowing long blocks of text (docstrings or
                comments), limiting the length to 72 characters is recommended.
                
                Reports error E501.
                Severity
                Category
                Status
                Source
                Language