Skip to content

False negatives of py/flask-debug #21616

@9iang22

Description

@9iang22

py/flask-debug misses some common ways to enable debug mode in Flask.

For example:

app = Flask(__name__)
app.config['DEBUG'] = True  # Enables debug mode
app.run()  

---
class Settings:
    DEBUG = True

settings = Settings()
app.run(debug=settings.DEBUG) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions