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.py — http://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.
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.py— http://docs.locust.io/en/stable/writing-a-locustfile.html#validating-responsesFound 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.