The following issues were found

examples/javascript/js_example/__init__.py
2 issues
Missing module docstring
Error

Line: 1 Column: 1

              from flask import Flask

app = Flask(__name__)

from js_example import views  # noqa: F401

            

Reported by Pylint.

Import "from js_example import views" should be placed at the top of the module
Error

Line: 5 Column: 1

              
app = Flask(__name__)

from js_example import views  # noqa: F401

            

Reported by Pylint.

tests/test_apps/cliapp/importerrorapp.py
2 issues
Unreachable code
Error

Line: 5 Column: 1

              
raise ImportError()

testapp = Flask("testapp")

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from flask import Flask

raise ImportError()

testapp = Flask("testapp")

            

Reported by Pylint.

tests/test_apps/cliapp/inner1/inner2/flask.py
2 issues
Module import itself
Error

Line: 1 Column: 1

              from flask import Flask

app = Flask(__name__)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from flask import Flask

app = Flask(__name__)

            

Reported by Pylint.

tests/test_apps/helloworld/hello.py
2 issues
Missing module docstring
Error

Line: 1 Column: 1

              from flask import Flask

app = Flask(__name__)


@app.route("/")
def hello():
    return "Hello World!"

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 7 Column: 1

              

@app.route("/")
def hello():
    return "Hello World!"

            

Reported by Pylint.

tests/test_apps/helloworld/wsgi.py
2 issues
Unused app imported from hello
Error

Line: 1 Column: 1

              from hello import app  # noqa: F401

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from hello import app  # noqa: F401

            

Reported by Pylint.

tests/test_apps/subdomaintestmodule/__init__.py
2 issues
No name 'Module' in module 'flask'
Error

Line: 1 Column: 1

              from flask import Module


mod = Module(__name__, "foo", subdomain="foo")

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from flask import Module


mod = Module(__name__, "foo", subdomain="foo")

            

Reported by Pylint.

src/flask/__main__.py
2 issues
Attempted relative import beyond top-level package
Error

Line: 1 Column: 1

              from .cli import main

main()

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from .cli import main

main()

            

Reported by Pylint.

setup.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              from setuptools import setup

# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
setup(
    name="Flask",
    install_requires=[
        "Werkzeug >= 2.0",
        "Jinja2 >= 3.0",
        "itsdangerous >= 2.0",

            

Reported by Pylint.

examples/tutorial/setup.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              from setuptools import setup

setup()

            

Reported by Pylint.

examples/tutorial/tests/data.sql
1 issues
Syntax error at or near "user"
Syntax error

Line: 1 Column: 13

              INSERT INTO user (username, password)
VALUES
  ('test', 'pbkdf2:sha256:50000$TCI4GzcX$0de171a4f4dac32e3364c7ddc7c14f3e2fa61f2d17574483f7ffbb431b4acb2f'),
  ('other', 'pbkdf2:sha256:50000$kJPKsz6N$d2d4784f1b030a9761f5ccaeeaca413f27f2ecb76d6168407af962ddce849f79');

INSERT INTO post (title, body, author_id, created)
VALUES
  ('test title', 'test' || x'0a' || 'body', 1, '2018-01-01 00:00:00');

            

Reported by SQLint.