AI Slop Code RIsk Monitor

locustio/locust

Write scalable load tests in plain Python 🚗💨

17.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for locustio/locust, a Python project with 28,200 GitHub stars. SynthScan examined 47,391 lines of code across 352 source files, recording 731 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 17.1 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

17.1
Adjusted Signal
17.1
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
28.2K
Stars
Python
Language
47.4K
Lines of Code
352
Files
731
Pattern Hits
2026-10-12
Scan Date
0.06
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 41.3/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 571 finding(s).

Hallucinated Dependency & Supply Chain Risk 9.5/100 · LOW

Are imports declared and package/API names verified? 67 finding(s).

Agent Over-Engineering Ratio 48.5/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 592 finding(s).

PR Review Velocity Impact 62.0/100 · HIGH

Which changes need focused human review? 731 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 3HIGH 18MEDIUM 34LOW 676

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 731 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers494 hits · 412 pts
SeverityFileLineSnippetContext
LOWlocust/web.py404 def _download_csv_suggest_file_name(suggest_filename_prefix: str) -> str:CODE
LOWlocust/web.py442 def request_stats_full_history_csv() -> Response:CODE
LOWlocust/env.py255 def _remove_user_classes_with_weight_zero(self) -> None:CODE
LOWlocust/env.py290 def _validate_user_class_name_uniqueness(self):CODE
LOWlocust/env.py299 def _validate_shape_class_instance(self):CODE
LOWlocust/log.py88def greenlet_exception_logger(logger, level=logging.CRITICAL):CODE
LOWlocust/dispatch.py129 def dispatch_iteration_durations(self) -> list[float]:CODE
LOWlocust/dispatch.py277 def _wait_between_dispatch_iteration_context(self) -> Generator[None]:CODE
LOWlocust/dispatch.py319 def _remove_users_from_workers(self) -> dict[str, dict[str, int]]:CODE
LOWlocust/dispatch.py397 def _fast_users_on_workers_copy(users_on_workers: dict[str, dict[str, int]]) -> dict[str, dict[str, int]]:CODE
LOWlocust/opentelemetry.py259def _setup_auto_instrumentation():CODE
LOWlocust/stats.py161def calculate_response_time_percentile(response_times: dict[int, int], num_requests: int, percent: float) -> int:CODE
LOWlocust/stats.py603 def get_response_time_percentile(self, percent: float) -> int:CODE
LOWlocust/stats.py616 def get_current_response_time_percentile(self, percent: float) -> int | None:CODE
LOWlocust/stats.py821def setup_distributed_stats_event_listeners(events: Events, stats: RequestStats) -> None:CODE
LOWlocust/stats.py898def get_percentile_stats_summary(stats: RequestStats) -> list[str]:CODE
LOWlocust/stats.py1266def validate_stats_configuration() -> None:CODE
LOWlocust/clients.py521 def build_connection_pool_key_attributes(self, request, verify, cert=None):CODE
LOWlocust/runners.py852 def _wait_for_workers_report_after_ramp_up(self) -> float:CODE
LOWlocust/runners.py1197 def reported_user_classes_count(self) -> dict[str, int]:CODE
LOWlocust/runners.py1346 def heartbeat_timeout_checker(self) -> NoReturn:CODE
LOWlocust/runners.py1525def _format_user_classes_count_for_log(user_classes_count: dict[str, int]) -> str:CODE
LOWlocust/runners.py1532def _aggregate_dispatched_users(d: dict[str, dict[str, int]]) -> dict[str, int]:CODE
LOWlocust/main.py86def merge_locustfiles_content(CODE
LOWlocust/main.py519 def spawn_run_time_quit_greenlet():CODE
LOW⚡locust/argument_parser.py92 def secret_args_included_in_web_ui(self) -> dict[str, configargparse.Action]:CODE
LOW⚡locust/argument_parser.py100 def required_args_included_in_web_ui(self) -> dict[str, configargparse.Action]:CODE
LOW⚡locust/argument_parser.py108 def multiple_args_included_in_web_ui(self) -> dict[str, configargparse.Action]:CODE
LOWlocust/argument_parser.py188def download_locustfile_from_url(url: str) -> str:CODE
LOWlocust/argument_parser.py215def get_empty_argument_parser(add_help=True, default_config_files=DEFAULT_CONFIG_FILES) -> LocustArgumentParser:CODE
LOWlocust/argument_parser.py259def download_locustfile_from_master(master_host: str, master_port: int) -> str:CODE
LOWlocust/argument_parser.py366def parse_locustfiles_from_master(locustfile_sources) -> list[str]:CODE
LOWlocust/argument_parser.py384def retrieve_locustfiles_from_master(options) -> list[str]:CODE
LOWlocust/argument_parser.py399def raise_argument_type_error(err_msg):CODE
LOWlocust/test/test_parser.py38 def test_parse_options_from_conf_file(self):CODE
LOW⚡locust/test/test_parser.py433 def test_find_locustfiles_with_multiple_locustfiles(self):STRING
LOW⚡locust/test/test_parser.py443 def test_find_locustfiles_error_for_invalid_file_extension(self):STRING
LOW⚡locust/test/test_parser.py450 def test_find_locustfiles_error_if_multiple_values_for_directory(self):STRING
LOWlocust/test/test_parser.py60 def test_parse_two_line_conf_file(self): # there was an issue with conf files identified as tomlSTRING
LOWlocust/test/test_parser.py70 def test_parse_options_from_toml_file(self):STRING
LOWlocust/test/test_parser.py135 def test_parse_options_from_env(self):STRING
LOWlocust/test/test_parser.py194 def test_parse_locustfile_multiple_files(self):STRING
LOWlocust/test/test_parser.py208 def test_parse_locustfile_with_directory(self):STRING
LOWlocust/test/test_parser.py219 def test_parse_locustfile_with_nested_directory(self):STRING
LOWlocust/test/test_parser.py243 def test_parse_locustfile_with_directory_ignores_invalid_filenames(self):STRING
LOWlocust/test/test_parser.py258 def test_parse_locustfile_empty_directory_error(self):STRING
LOWlocust/test/test_parser.py268 def test_parse_locustfile_and_directory(self):STRING
LOWlocust/test/test_parser.py282 def test_parse_multiple_directories(self):STRING
LOWlocust/test/test_parser.py295 def test_parse_locustfile_invalid_directory_error(self):STRING
LOWlocust/test/test_parser.py305 def test_unknown_command_line_arg(self):STRING
LOWlocust/test/test_parser.py352 def test_custom_argument_help_message(self):STRING
LOWlocust/test/test_parser.py371 def test_custom_argument_included_in_web_ui(self):STRING
LOWlocust/test/test_parser.py406 def test_find_locustfiles_with_is_directory(self):STRING
LOWlocust/test/test_parser.py417 def test_find_locustfiles_error_if_directory_doesnt_exist(self):STRING
LOWlocust/test/test_parser.py422 def test_find_locustfiles_ignores_invalid_files_in_directory(self):STRING
LOWlocust/test/test_dispatch.py1083 # def test_ramp_down_users_on_workers_respecting_weight(self):COMMENT
LOWlocust/test/test_dispatch.py787 def test_users_are_distributed_evenly_across_hosts(self):CODE
LOWlocust/test/test_dispatch.py851 def test_implementation_of_dispatch_distribution_with_gcd(self):CODE
LOWlocust/test/test_dispatch.py883 def test_implementation_of_dispatch_distribution_with_gcd_float_weight(self):CODE
LOWlocust/test/test_dispatch.py922 def test_wait_between_dispatch(self):CODE
434 more matches not shown…
Decorative Section Separators17 hits · 58 pts
SeverityFileLineSnippetContext
MEDIUM⚡locust/test/test_csv_request_logger.py66 # ------------------------------------------------------------------COMMENT
MEDIUM⚡locust/contrib/milvus.py269# ----------------------------------COMMENT
MEDIUM⚡locust/contrib/milvus.py271# ----------------------------------COMMENT
MEDIUM⚡locust/contrib/qdrant.py133# ----------------------------------COMMENT
MEDIUM⚡locust/contrib/qdrant.py135# ----------------------------------COMMENT
MEDIUMlocust/contrib/csv_request_logger.py108 # ------------------------------------------------------------------COMMENT
MEDIUMlocust/contrib/csv_request_logger.py110 # ------------------------------------------------------------------COMMENT
MEDIUMlocust/contrib/csv_request_logger.py135 # ------------------------------------------------------------------COMMENT
MEDIUMlocust/contrib/csv_request_logger.py137 # ------------------------------------------------------------------COMMENT
MEDIUMdocs/conf.py90# ---------------------COMMENT
MEDIUMdocs/conf.py167# -----------------------COMMENT
MEDIUM.github/workflows/tests.yml23 #-------------------------COMMENT
MEDIUM.github/workflows/tests.yml25 #-------------------------COMMENT
MEDIUM.github/workflows/tests.yml129 #-------------------------COMMENT
MEDIUM.github/workflows/tests.yml131 #-------------------------COMMENT
MEDIUM.github/workflows/tests.yml393 # -------------------------COMMENT
MEDIUM.github/workflows/tests.yml395 # -------------------------COMMENT
Unused Imports61 hits · 58 pts
SeverityFileLineSnippetContext
LOWpytest_locust/plugin.py7CODE
LOWlocust/event.py1CODE
LOWlocust/web.py1CODE
LOWlocust/env.py1CODE
LOWlocust/input_events.py1CODE
LOWlocust/dispatch.py1CODE
LOWlocust/__init__.py24CODE
LOWlocust/__init__.py25CODE
LOWlocust/__init__.py26CODE
LOWlocust/__init__.py28CODE
LOWlocust/__init__.py29CODE
LOWlocust/__init__.py30CODE
LOWlocust/__init__.py30CODE
LOWlocust/__init__.py30CODE
LOWlocust/__init__.py31CODE
LOWlocust/__init__.py32CODE
LOWlocust/__init__.py32CODE
LOWlocust/__init__.py32CODE
LOWlocust/__init__.py33CODE
LOWlocust/__init__.py33CODE
LOWlocust/__init__.py34CODE
LOWlocust/__init__.py34CODE
LOWlocust/__init__.py34CODE
LOWlocust/__init__.py34CODE
LOWlocust/__init__.py34CODE
LOWlocust/__init__.py64CODE
LOWlocust/__init__.py65CODE
LOWlocust/__init__.py8CODE
LOWlocust/debug.py1CODE
LOWlocust/stats.py1CODE
LOWlocust/clients.py1CODE
LOWlocust/runners.py1CODE
LOWlocust/shape.py1CODE
LOWlocust/main.py1CODE
LOWlocust/main.py37CODE
LOWlocust/argument_parser.py1CODE
LOWlocust/test/test_dispatch.py1CODE
LOWlocust/test/mock_logging.py1CODE
LOWlocust/test/test_web.py1CODE
LOWlocust/test/test_runners.py1CODE
LOWlocust/test/test_main.py1CODE
LOWlocust/util/load_locustfile.py1CODE
LOWlocust/user/task.py1CODE
LOWlocust/user/users.py1CODE
LOWlocust/user/__init__.py8CODE
LOWlocust/user/__init__.py8CODE
LOWlocust/user/__init__.py8CODE
LOWlocust/user/__init__.py9CODE
LOWlocust/user/__init__.py9CODE
LOWlocust/user/inspectuser.py1CODE
LOWlocust/user/wait_time.py7CODE
LOWlocust/contrib/mqtt.py1CODE
LOWlocust/contrib/fasthttp.py1CODE
LOWlocust/contrib/fasthttp.py6CODE
LOWlocust/contrib/csv_request_logger.py54CODE
LOWlocust/rpc/protocol.py1CODE
LOWlocust/rpc/__init__.py6CODE
LOWlocust/rpc/__init__.py7CODE
LOWdocs/_ext/llms_txt.py36CODE
LOWexamples/testdata_management.py23CODE
1 more matches not shown…
Excessive Try-Catch Wrapping47 hits · 56 pts
SeverityFileLineSnippetContext
LOWlocust/event.py52 except Exception:CODE
LOWlocust/event.py85 except Exception as e:CODE
LOWlocust/web.py682 except Exception as e:CODE
LOWlocust/input_events.py114 except Exception as e:CODE
MEDIUMlocust/input_events.py99def input_listener_func():CODE
LOWlocust/runners.py387 except Exception:CODE
LOWlocust/runners.py984 except Exception as error:CODE
LOWlocust/runners.py1081 except Exception as e:CODE
LOWlocust/runners.py1183 except Exception:CODE
LOWlocust/main.py243 except Exception:CODE
LOWlocust/main.py340 except Exception:CODE
LOWlocust/main.py372 except Exception as e:CODE
LOWlocust/main.py693 except Exception:CODE
LOWlocust/argument_parser.py120 except Exception as e:CODE
MEDIUMlocust/argument_parser.py117def parse(self, stream):CODE
MEDIUMlocust/test/test_web.py207def test_reset_stats(self):CODE
MEDIUMlocust/test/test_web.py230def test_exceptions(self):CODE
MEDIUMlocust/test/test_web.py245def test_exceptions_csv(self):CODE
MEDIUMlocust/test/test_web.py1177def test_report_exceptions(self):CODE
LOWlocust/test/test_web.py210 except Exception as e:CODE
LOWlocust/test/test_web.py233 except Exception as e:CODE
LOWlocust/test/test_web.py248 except Exception as e:CODE
LOWlocust/test/test_web.py1180 except Exception as e:CODE
LOWlocust/test/__init__.py14except Exception:CODE
LOW⚡locust/user/task.py375 except Exception:CODE
LOW⚡locust/user/task.py384 except Exception:CODE
LOW⚡locust/user/task.py387 except Exception as e:CODE
LOWlocust/user/users.py167 except Exception as e:CODE
LOWlocust/user/users.py307 except Exception as e:CODE
LOWlocust/contrib/milvus.py97 except Exception as e:CODE
LOWlocust/contrib/milvus.py110 except Exception as e:CODE
LOWlocust/contrib/milvus.py159 except Exception as e:CODE
LOWlocust/contrib/milvus.py192 except Exception as e:CODE
LOWlocust/contrib/milvus.py226 except Exception:CODE
LOWlocust/contrib/milvus.py248 except Exception as e:CODE
LOW⚡locust/contrib/milvus.py261 except Exception as e:CODE
LOWlocust/contrib/qdrant.py46 except Exception as e:CODE
LOWlocust/contrib/qdrant.py79 except Exception as e:CODE
LOWlocust/contrib/qdrant.py109 except Exception as e:CODE
LOW⚡locust/contrib/qdrant.py125 except Exception as e:CODE
LOWlocust/contrib/mqtt.py381 except Exception:CODE
LOWlocust/contrib/postgres.py23 except Exception as e:CODE
LOWlocust/contrib/socketio.py29 except Exception as e:CODE
LOWlocust/contrib/socketio.py47 except Exception as e:CODE
MEDIUMlocust/rpc/zmqrpc.py72 print(f"Error resolving address: {e}")CODE
LOWdocs/_ext/llms_txt.py199 except Exception as e:CODE
LOWexamples/manual_stats_reporting.py32 except Exception as e:CODE
Empty Error Handlers11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHlocust/stats.py95except AttributeError:CODE
HIGHlocust/stats.py89except OSError: # not a real terminalCODE
HIGHlocust/main.py282except ProcessLookupError:CODE
HIGHlocust/main.py241except ProcessLookupError:CODE
HIGHlocust/argument_parser.py42except FileNotFoundError:CODE
HIGHlocust/argument_parser.py44except PermissionError:CODE
HIGHlocust/test/test_http.py225except OtherException:CODE
HIGHlocust/test/test_fasthttp.py242except OtherException:CODE
HIGHlocust/user/task.py364except RescheduleTaskImmediately:CODE
HIGHlocust/contrib/fasthttp.py667except AttributeError:CODE
HIGHlocust/contrib/fasthttp.py555except UnicodeDecodeError:CODE
Deep Nesting44 hits · 38 pts
SeverityFileLineSnippetContext
LOWlocust/web.py122CODE
LOWlocust/web.py222CODE
LOWlocust/env.py270CODE
LOWlocust/input_events.py98CODE
LOWlocust/input_events.py67CODE
LOWlocust/input_events.py99CODE
LOWlocust/opentelemetry.py105CODE
LOWlocust/opentelemetry.py150CODE
LOWlocust/opentelemetry.py201CODE
LOWlocust/runners.py247CODE
LOWlocust/runners.py339CODE
LOWlocust/runners.py466CODE
LOWlocust/runners.py875CODE
LOWlocust/runners.py925CODE
LOWlocust/runners.py973CODE
LOWlocust/runners.py1015CODE
LOWlocust/main.py148CODE
LOWlocust/main.py260CODE
LOWlocust/argument_parser.py117CODE
LOWlocust/test/test_dispatch.py1775CODE
LOWlocust/test/test_dispatch.py2148CODE
LOWlocust/test/test_dispatch.py3623CODE
LOWlocust/test/test_opentelemetry.py48CODE
LOWlocust/test/test_opentelemetry_request_listener.py42CODE
LOWlocust/test/test_runners.py1314CODE
LOWlocust/test/test_runners.py1839CODE
LOWlocust/test/test_runners.py4190CODE
LOWlocust/test/test_main.py289CODE
LOWlocust/test/test_main.py298CODE
LOWlocust/test/test_main.py373CODE
LOWlocust/test/test_main.py512CODE
LOWlocust/test/test_main.py762CODE
LOWlocust/test/test_main.py807CODE
LOWlocust/test/test_main.py1479CODE
LOWlocust/util/load_locustfile.py88CODE
LOWlocust/user/task.py144CODE
LOWlocust/user/task.py346CODE
LOWlocust/user/users.py269CODE
LOWlocust/user/users.py373CODE
LOWlocust/user/sequential_taskset.py17CODE
LOWlocust/contrib/milvus.py200CODE
LOWlocust/contrib/fasthttp.py531CODE
LOWdocs/_ext/llms_txt.py110CODE
LOWexamples/response_validations.py21CODE
Hallucination Indicators3 hits · 35 pts
SeverityFileLineSnippetContext
CRITICALlocust/test/test_runners.py375 self.user.environment.events.request.fire(CODE
CRITICALlocust/test/test_runners.py401 self.user.environment.events.request.fire(CODE
CRITICAL⚡locust/user/task.py388 self.user.environment.events.user_error.fire(user_instance=self, exception=e, tb=e.__traceback__)CODE
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHlocust/shape.py0meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} STRING
HIGHlocust/user/task.py0meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} STRING
HIGHlocust/user/users.py0meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} STRING
HIGHexamples/custom_wait_function.py0user class that does requests to the locust web server running on localhostSTRING
HIGHexamples/basic.py0user class that does requests to the locust web server running on localhostSTRING
HIGHexamples/multiple_hosts.py0user class that does requests to the locust web server running on localhostSTRING
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMlocust/env.py159 # Create a new RequestStats with use_response_times_cache set to False to save some memoryCOMMENT
MEDIUMlocust/test/test_markov_taskset.py223 # Define a class with abstract=True explicitlyCOMMENT
MEDIUMlocust/test/test_main.py857 # Define the input filename as well as the resulting filename within the temp directoryCOMMENT
MEDIUMdocs/conf.py2# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMdocs/conf.py22# Define the canonical URL if you are using a custom domain on Read the DocsCOMMENT
MEDIUMexamples/grpc/hello_pb2_grpc.py46# This class is part of an EXPERIMENTAL API.COMMENT
MEDIUMexamples/socketio/echo_server.py12# Create a Socket.IO serverCOMMENT
Modern Structural Boilerplate12 hits · 12 pts
SeverityFileLineSnippetContext
LOWlocust/web.py50logger = logging.getLogger(__name__)CODE
LOWlocust/opentelemetry.py11logger = logging.getLogger(__name__)CODE
LOWlocust/stats.py33logger = logging.getLogger(__name__)CODE
LOWlocust/stats.py956def update_stats_history(runner: Runner, timestamp: str | None = None) -> None:CODE
LOWlocust/runners.py42logger = logging.getLogger(__name__)CODE
LOWlocust/runners.py197 def update_state(self, new_state: str) -> None:CODE
LOWlocust/util/exception_handler.py4logger = logging.getLogger(__name__)CODE
LOWlocust/user/task.py34logger = logging.getLogger(__name__)CODE
LOWlocust/user/users.py42logger = logging.getLogger(__name__)CODE
LOWlocust/contrib/csv_request_logger.py57logger = logging.getLogger(__name__)CODE
LOWdocs/_ext/llms_txt.py48logger = logging.getLogger(__name__)CODE
LOWexamples/grpc/hello_server.py9logger = logging.getLogger(__name__)CODE
Over-Commented Block12 hits · 11 pts
SeverityFileLineSnippetContext
LOWlocust/runners.py361 # to unexpected behaviours such as the one in the following example:COMMENT
LOWlocust/test/test_dispatch.py1081 self.assertTrue(0 <= delta <= _TOLERANCE, delta)COMMENT
LOWlocust/test/test_dispatch.py1101 # {COMMENT
LOWdocs/conf.py1#COMMENT
LOWdocs/conf.py141# There are two options for replacing |today|: either, you set today to someCOMMENT
LOWdocs/conf.py181# HTML themeCOMMENT
LOWexamples/testdata_management.py1# This example shows the various ways to run things before/outside of the normal task execution flow,COMMENT
LOWexamples/open_closed_workload.py21# so if response times increase to the point where one task execution takes more than 10s,COMMENT
LOWexamples/browse_docs_test.py41COMMENT
LOWexamples/socketio/socketio_ex.py21 # resp = self.client.post("/login", json={"username": "foo", "password": "bar"})COMMENT
LOWbenchmarks/dispatch.py21USER_CLASSES: list[type[User]] = []COMMENT
LOW.github/workflows/tests.yml561 # dir: locust/webuiCOMMENT
Slop Phrases3 hits · 7 pts
SeverityFileLineSnippetContext
LOWlocust/contrib/oai.py11from openai import OpenAI # dont forget to install openaiCODE
MEDIUMexamples/testdata_management.py43# If you want to get something over HTTP at this time you can use `requests` directly:COMMENT
MEDIUMexamples/testdata_management.py122 # If you do not want the request logged, you can replace self.client.<method> with requests.<method>COMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHAGENTS.md3Locust is a developer-friendly, open-source load testing framework. This guide helps AI agents understand Locust's strucCODE
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWlocust/web.py122CODE
LOWlocust/env.py23CODE
LOWlocust/env.py168CODE
LOWlocust/contrib/fasthttp.py196CODE
LOWexamples/grpc/hello_pb2_grpc.py51CODE
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippetContext
LOWlocust/test/test_web.py1246 def do_something(self):CODE
LOW⚡locust/user/task.py398 def execute_task(self, task):CODE
LOWlocust/user/task.py507 def execute_task(self, task):CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlocust/argument_parser.py200 # Check if response is valid python codeCOMMENT
Fake / Example Data3 hits · 2 pts
SeverityFileLineSnippetContext
LOWlocust/test/test_runners.py3331 server.mocked_send(Message("test_custom_msg", {"test_data": 123}, "dummy_id"))CODE
LOWlocust/test/test_runners.py3353 server.mocked_send(Message("unregistered_custom_msg", {}, "dummy_id"))CODE
LOWlocust/test/test_runners.py4004 client.mocked_send(Message("unregistered_custom_msg", {}, "dummy_id"))CODE
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMlocust/contrib/fasthttp.py634 """Override _urlopen() in order to make it use the response_type attribute"""STRING