Skip to content

Code quality observations (3 high priority) #3427

Description

@shunfeng8421

Scanned 25 files in this repository for common code quality patterns.

Specific findings

🟡 locust\clients.py — 使用可变默认参数 {} — 多次调用共享同一个对象
🟡 locust\contrib\fasthttp.py — 使用可变默认参数 {} — 多次调用共享同一个对象
🟡 pytest_locust\plugin.py — pytest_configure
🟡 pytest_locust\plugin.py — session
examples\custom_shape\staging_user_classes.py:50 — find something better
locust\clients.pyhttp://docs.locust.io/en/stable/writing-a-locustfile.html#validating-responses

Found 36 quality observations total (0 critical, 3 high priority).

These are static analysis suggestions, not confirmed bugs. Review at your discretion — feel free to close this issue if it's not useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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