Write scalable load tests in plain Python 🚗💨
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 571 finding(s).
Are imports declared and package/API names verified? 67 finding(s).
Are wrappers, guards, and repeated structures necessary? 592 finding(s).
Which changes need focused human review? 731 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/web.py | 404 | def _download_csv_suggest_file_name(suggest_filename_prefix: str) -> str: | CODE |
| LOW | locust/web.py | 442 | def request_stats_full_history_csv() -> Response: | CODE |
| LOW | locust/env.py | 255 | def _remove_user_classes_with_weight_zero(self) -> None: | CODE |
| LOW | locust/env.py | 290 | def _validate_user_class_name_uniqueness(self): | CODE |
| LOW | locust/env.py | 299 | def _validate_shape_class_instance(self): | CODE |
| LOW | locust/log.py | 88 | def greenlet_exception_logger(logger, level=logging.CRITICAL): | CODE |
| LOW | locust/dispatch.py | 129 | def dispatch_iteration_durations(self) -> list[float]: | CODE |
| LOW | locust/dispatch.py | 277 | def _wait_between_dispatch_iteration_context(self) -> Generator[None]: | CODE |
| LOW | locust/dispatch.py | 319 | def _remove_users_from_workers(self) -> dict[str, dict[str, int]]: | CODE |
| LOW | locust/dispatch.py | 397 | def _fast_users_on_workers_copy(users_on_workers: dict[str, dict[str, int]]) -> dict[str, dict[str, int]]: | CODE |
| LOW | locust/opentelemetry.py | 259 | def _setup_auto_instrumentation(): | CODE |
| LOW | locust/stats.py | 161 | def calculate_response_time_percentile(response_times: dict[int, int], num_requests: int, percent: float) -> int: | CODE |
| LOW | locust/stats.py | 603 | def get_response_time_percentile(self, percent: float) -> int: | CODE |
| LOW | locust/stats.py | 616 | def get_current_response_time_percentile(self, percent: float) -> int | None: | CODE |
| LOW | locust/stats.py | 821 | def setup_distributed_stats_event_listeners(events: Events, stats: RequestStats) -> None: | CODE |
| LOW | locust/stats.py | 898 | def get_percentile_stats_summary(stats: RequestStats) -> list[str]: | CODE |
| LOW | locust/stats.py | 1266 | def validate_stats_configuration() -> None: | CODE |
| LOW | locust/clients.py | 521 | def build_connection_pool_key_attributes(self, request, verify, cert=None): | CODE |
| LOW | locust/runners.py | 852 | def _wait_for_workers_report_after_ramp_up(self) -> float: | CODE |
| LOW | locust/runners.py | 1197 | def reported_user_classes_count(self) -> dict[str, int]: | CODE |
| LOW | locust/runners.py | 1346 | def heartbeat_timeout_checker(self) -> NoReturn: | CODE |
| LOW | locust/runners.py | 1525 | def _format_user_classes_count_for_log(user_classes_count: dict[str, int]) -> str: | CODE |
| LOW | locust/runners.py | 1532 | def _aggregate_dispatched_users(d: dict[str, dict[str, int]]) -> dict[str, int]: | CODE |
| LOW | locust/main.py | 86 | def merge_locustfiles_content( | CODE |
| LOW | locust/main.py | 519 | def spawn_run_time_quit_greenlet(): | CODE |
| LOW⚡ | locust/argument_parser.py | 92 | def secret_args_included_in_web_ui(self) -> dict[str, configargparse.Action]: | CODE |
| LOW⚡ | locust/argument_parser.py | 100 | def required_args_included_in_web_ui(self) -> dict[str, configargparse.Action]: | CODE |
| LOW⚡ | locust/argument_parser.py | 108 | def multiple_args_included_in_web_ui(self) -> dict[str, configargparse.Action]: | CODE |
| LOW | locust/argument_parser.py | 188 | def download_locustfile_from_url(url: str) -> str: | CODE |
| LOW | locust/argument_parser.py | 215 | def get_empty_argument_parser(add_help=True, default_config_files=DEFAULT_CONFIG_FILES) -> LocustArgumentParser: | CODE |
| LOW | locust/argument_parser.py | 259 | def download_locustfile_from_master(master_host: str, master_port: int) -> str: | CODE |
| LOW | locust/argument_parser.py | 366 | def parse_locustfiles_from_master(locustfile_sources) -> list[str]: | CODE |
| LOW | locust/argument_parser.py | 384 | def retrieve_locustfiles_from_master(options) -> list[str]: | CODE |
| LOW | locust/argument_parser.py | 399 | def raise_argument_type_error(err_msg): | CODE |
| LOW | locust/test/test_parser.py | 38 | def test_parse_options_from_conf_file(self): | CODE |
| LOW⚡ | locust/test/test_parser.py | 433 | def test_find_locustfiles_with_multiple_locustfiles(self): | STRING |
| LOW⚡ | locust/test/test_parser.py | 443 | def test_find_locustfiles_error_for_invalid_file_extension(self): | STRING |
| LOW⚡ | locust/test/test_parser.py | 450 | def test_find_locustfiles_error_if_multiple_values_for_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 60 | def test_parse_two_line_conf_file(self): # there was an issue with conf files identified as toml | STRING |
| LOW | locust/test/test_parser.py | 70 | def test_parse_options_from_toml_file(self): | STRING |
| LOW | locust/test/test_parser.py | 135 | def test_parse_options_from_env(self): | STRING |
| LOW | locust/test/test_parser.py | 194 | def test_parse_locustfile_multiple_files(self): | STRING |
| LOW | locust/test/test_parser.py | 208 | def test_parse_locustfile_with_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 219 | def test_parse_locustfile_with_nested_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 243 | def test_parse_locustfile_with_directory_ignores_invalid_filenames(self): | STRING |
| LOW | locust/test/test_parser.py | 258 | def test_parse_locustfile_empty_directory_error(self): | STRING |
| LOW | locust/test/test_parser.py | 268 | def test_parse_locustfile_and_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 282 | def test_parse_multiple_directories(self): | STRING |
| LOW | locust/test/test_parser.py | 295 | def test_parse_locustfile_invalid_directory_error(self): | STRING |
| LOW | locust/test/test_parser.py | 305 | def test_unknown_command_line_arg(self): | STRING |
| LOW | locust/test/test_parser.py | 352 | def test_custom_argument_help_message(self): | STRING |
| LOW | locust/test/test_parser.py | 371 | def test_custom_argument_included_in_web_ui(self): | STRING |
| LOW | locust/test/test_parser.py | 406 | def test_find_locustfiles_with_is_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 417 | def test_find_locustfiles_error_if_directory_doesnt_exist(self): | STRING |
| LOW | locust/test/test_parser.py | 422 | def test_find_locustfiles_ignores_invalid_files_in_directory(self): | STRING |
| LOW | locust/test/test_dispatch.py | 1083 | # def test_ramp_down_users_on_workers_respecting_weight(self): | COMMENT |
| LOW | locust/test/test_dispatch.py | 787 | def test_users_are_distributed_evenly_across_hosts(self): | CODE |
| LOW | locust/test/test_dispatch.py | 851 | def test_implementation_of_dispatch_distribution_with_gcd(self): | CODE |
| LOW | locust/test/test_dispatch.py | 883 | def test_implementation_of_dispatch_distribution_with_gcd_float_weight(self): | CODE |
| LOW | locust/test/test_dispatch.py | 922 | def test_wait_between_dispatch(self): | CODE |
| 434 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | locust/test/test_csv_request_logger.py | 66 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | locust/contrib/milvus.py | 269 | # ---------------------------------- | COMMENT |
| MEDIUM⚡ | locust/contrib/milvus.py | 271 | # ---------------------------------- | COMMENT |
| MEDIUM⚡ | locust/contrib/qdrant.py | 133 | # ---------------------------------- | COMMENT |
| MEDIUM⚡ | locust/contrib/qdrant.py | 135 | # ---------------------------------- | COMMENT |
| MEDIUM | locust/contrib/csv_request_logger.py | 108 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | locust/contrib/csv_request_logger.py | 110 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | locust/contrib/csv_request_logger.py | 135 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | locust/contrib/csv_request_logger.py | 137 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | docs/conf.py | 90 | # --------------------- | COMMENT |
| MEDIUM | docs/conf.py | 167 | # ----------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 23 | #------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 25 | #------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 129 | #------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 131 | #------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 393 | # ------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 395 | # ------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pytest_locust/plugin.py | 7 | CODE | |
| LOW | locust/event.py | 1 | CODE | |
| LOW | locust/web.py | 1 | CODE | |
| LOW | locust/env.py | 1 | CODE | |
| LOW | locust/input_events.py | 1 | CODE | |
| LOW | locust/dispatch.py | 1 | CODE | |
| LOW | locust/__init__.py | 24 | CODE | |
| LOW | locust/__init__.py | 25 | CODE | |
| LOW | locust/__init__.py | 26 | CODE | |
| LOW | locust/__init__.py | 28 | CODE | |
| LOW | locust/__init__.py | 29 | CODE | |
| LOW | locust/__init__.py | 30 | CODE | |
| LOW | locust/__init__.py | 30 | CODE | |
| LOW | locust/__init__.py | 30 | CODE | |
| LOW | locust/__init__.py | 31 | CODE | |
| LOW | locust/__init__.py | 32 | CODE | |
| LOW | locust/__init__.py | 32 | CODE | |
| LOW | locust/__init__.py | 32 | CODE | |
| LOW | locust/__init__.py | 33 | CODE | |
| LOW | locust/__init__.py | 33 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 64 | CODE | |
| LOW | locust/__init__.py | 65 | CODE | |
| LOW | locust/__init__.py | 8 | CODE | |
| LOW | locust/debug.py | 1 | CODE | |
| LOW | locust/stats.py | 1 | CODE | |
| LOW | locust/clients.py | 1 | CODE | |
| LOW | locust/runners.py | 1 | CODE | |
| LOW | locust/shape.py | 1 | CODE | |
| LOW | locust/main.py | 1 | CODE | |
| LOW | locust/main.py | 37 | CODE | |
| LOW | locust/argument_parser.py | 1 | CODE | |
| LOW | locust/test/test_dispatch.py | 1 | CODE | |
| LOW | locust/test/mock_logging.py | 1 | CODE | |
| LOW | locust/test/test_web.py | 1 | CODE | |
| LOW | locust/test/test_runners.py | 1 | CODE | |
| LOW | locust/test/test_main.py | 1 | CODE | |
| LOW | locust/util/load_locustfile.py | 1 | CODE | |
| LOW | locust/user/task.py | 1 | CODE | |
| LOW | locust/user/users.py | 1 | CODE | |
| LOW | locust/user/__init__.py | 8 | CODE | |
| LOW | locust/user/__init__.py | 8 | CODE | |
| LOW | locust/user/__init__.py | 8 | CODE | |
| LOW | locust/user/__init__.py | 9 | CODE | |
| LOW | locust/user/__init__.py | 9 | CODE | |
| LOW | locust/user/inspectuser.py | 1 | CODE | |
| LOW | locust/user/wait_time.py | 7 | CODE | |
| LOW | locust/contrib/mqtt.py | 1 | CODE | |
| LOW | locust/contrib/fasthttp.py | 1 | CODE | |
| LOW | locust/contrib/fasthttp.py | 6 | CODE | |
| LOW | locust/contrib/csv_request_logger.py | 54 | CODE | |
| LOW | locust/rpc/protocol.py | 1 | CODE | |
| LOW | locust/rpc/__init__.py | 6 | CODE | |
| LOW | locust/rpc/__init__.py | 7 | CODE | |
| LOW | docs/_ext/llms_txt.py | 36 | CODE | |
| LOW | examples/testdata_management.py | 23 | CODE | |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/event.py | 52 | except Exception: | CODE |
| LOW | locust/event.py | 85 | except Exception as e: | CODE |
| LOW | locust/web.py | 682 | except Exception as e: | CODE |
| LOW | locust/input_events.py | 114 | except Exception as e: | CODE |
| MEDIUM | locust/input_events.py | 99 | def input_listener_func(): | CODE |
| LOW | locust/runners.py | 387 | except Exception: | CODE |
| LOW | locust/runners.py | 984 | except Exception as error: | CODE |
| LOW | locust/runners.py | 1081 | except Exception as e: | CODE |
| LOW | locust/runners.py | 1183 | except Exception: | CODE |
| LOW | locust/main.py | 243 | except Exception: | CODE |
| LOW | locust/main.py | 340 | except Exception: | CODE |
| LOW | locust/main.py | 372 | except Exception as e: | CODE |
| LOW | locust/main.py | 693 | except Exception: | CODE |
| LOW | locust/argument_parser.py | 120 | except Exception as e: | CODE |
| MEDIUM | locust/argument_parser.py | 117 | def parse(self, stream): | CODE |
| MEDIUM | locust/test/test_web.py | 207 | def test_reset_stats(self): | CODE |
| MEDIUM | locust/test/test_web.py | 230 | def test_exceptions(self): | CODE |
| MEDIUM | locust/test/test_web.py | 245 | def test_exceptions_csv(self): | CODE |
| MEDIUM | locust/test/test_web.py | 1177 | def test_report_exceptions(self): | CODE |
| LOW | locust/test/test_web.py | 210 | except Exception as e: | CODE |
| LOW | locust/test/test_web.py | 233 | except Exception as e: | CODE |
| LOW | locust/test/test_web.py | 248 | except Exception as e: | CODE |
| LOW | locust/test/test_web.py | 1180 | except Exception as e: | CODE |
| LOW | locust/test/__init__.py | 14 | except Exception: | CODE |
| LOW⚡ | locust/user/task.py | 375 | except Exception: | CODE |
| LOW⚡ | locust/user/task.py | 384 | except Exception: | CODE |
| LOW⚡ | locust/user/task.py | 387 | except Exception as e: | CODE |
| LOW | locust/user/users.py | 167 | except Exception as e: | CODE |
| LOW | locust/user/users.py | 307 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 97 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 110 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 159 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 192 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 226 | except Exception: | CODE |
| LOW | locust/contrib/milvus.py | 248 | except Exception as e: | CODE |
| LOW⚡ | locust/contrib/milvus.py | 261 | except Exception as e: | CODE |
| LOW | locust/contrib/qdrant.py | 46 | except Exception as e: | CODE |
| LOW | locust/contrib/qdrant.py | 79 | except Exception as e: | CODE |
| LOW | locust/contrib/qdrant.py | 109 | except Exception as e: | CODE |
| LOW⚡ | locust/contrib/qdrant.py | 125 | except Exception as e: | CODE |
| LOW | locust/contrib/mqtt.py | 381 | except Exception: | CODE |
| LOW | locust/contrib/postgres.py | 23 | except Exception as e: | CODE |
| LOW | locust/contrib/socketio.py | 29 | except Exception as e: | CODE |
| LOW | locust/contrib/socketio.py | 47 | except Exception as e: | CODE |
| MEDIUM | locust/rpc/zmqrpc.py | 72 | print(f"Error resolving address: {e}") | CODE |
| LOW | docs/_ext/llms_txt.py | 199 | except Exception as e: | CODE |
| LOW | examples/manual_stats_reporting.py | 32 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | locust/stats.py | 95 | except AttributeError: | CODE |
| HIGH | locust/stats.py | 89 | except OSError: # not a real terminal | CODE |
| HIGH | locust/main.py | 282 | except ProcessLookupError: | CODE |
| HIGH | locust/main.py | 241 | except ProcessLookupError: | CODE |
| HIGH | locust/argument_parser.py | 42 | except FileNotFoundError: | CODE |
| HIGH | locust/argument_parser.py | 44 | except PermissionError: | CODE |
| HIGH | locust/test/test_http.py | 225 | except OtherException: | CODE |
| HIGH | locust/test/test_fasthttp.py | 242 | except OtherException: | CODE |
| HIGH | locust/user/task.py | 364 | except RescheduleTaskImmediately: | CODE |
| HIGH | locust/contrib/fasthttp.py | 667 | except AttributeError: | CODE |
| HIGH | locust/contrib/fasthttp.py | 555 | except UnicodeDecodeError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/web.py | 122 | CODE | |
| LOW | locust/web.py | 222 | CODE | |
| LOW | locust/env.py | 270 | CODE | |
| LOW | locust/input_events.py | 98 | CODE | |
| LOW | locust/input_events.py | 67 | CODE | |
| LOW | locust/input_events.py | 99 | CODE | |
| LOW | locust/opentelemetry.py | 105 | CODE | |
| LOW | locust/opentelemetry.py | 150 | CODE | |
| LOW | locust/opentelemetry.py | 201 | CODE | |
| LOW | locust/runners.py | 247 | CODE | |
| LOW | locust/runners.py | 339 | CODE | |
| LOW | locust/runners.py | 466 | CODE | |
| LOW | locust/runners.py | 875 | CODE | |
| LOW | locust/runners.py | 925 | CODE | |
| LOW | locust/runners.py | 973 | CODE | |
| LOW | locust/runners.py | 1015 | CODE | |
| LOW | locust/main.py | 148 | CODE | |
| LOW | locust/main.py | 260 | CODE | |
| LOW | locust/argument_parser.py | 117 | CODE | |
| LOW | locust/test/test_dispatch.py | 1775 | CODE | |
| LOW | locust/test/test_dispatch.py | 2148 | CODE | |
| LOW | locust/test/test_dispatch.py | 3623 | CODE | |
| LOW | locust/test/test_opentelemetry.py | 48 | CODE | |
| LOW | locust/test/test_opentelemetry_request_listener.py | 42 | CODE | |
| LOW | locust/test/test_runners.py | 1314 | CODE | |
| LOW | locust/test/test_runners.py | 1839 | CODE | |
| LOW | locust/test/test_runners.py | 4190 | CODE | |
| LOW | locust/test/test_main.py | 289 | CODE | |
| LOW | locust/test/test_main.py | 298 | CODE | |
| LOW | locust/test/test_main.py | 373 | CODE | |
| LOW | locust/test/test_main.py | 512 | CODE | |
| LOW | locust/test/test_main.py | 762 | CODE | |
| LOW | locust/test/test_main.py | 807 | CODE | |
| LOW | locust/test/test_main.py | 1479 | CODE | |
| LOW | locust/util/load_locustfile.py | 88 | CODE | |
| LOW | locust/user/task.py | 144 | CODE | |
| LOW | locust/user/task.py | 346 | CODE | |
| LOW | locust/user/users.py | 269 | CODE | |
| LOW | locust/user/users.py | 373 | CODE | |
| LOW | locust/user/sequential_taskset.py | 17 | CODE | |
| LOW | locust/contrib/milvus.py | 200 | CODE | |
| LOW | locust/contrib/fasthttp.py | 531 | CODE | |
| LOW | docs/_ext/llms_txt.py | 110 | CODE | |
| LOW | examples/response_validations.py | 21 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | locust/test/test_runners.py | 375 | self.user.environment.events.request.fire( | CODE |
| CRITICAL | locust/test/test_runners.py | 401 | self.user.environment.events.request.fire( | CODE |
| CRITICAL⚡ | locust/user/task.py | 388 | self.user.environment.events.user_error.fire(user_instance=self, exception=e, tb=e.__traceback__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | locust/shape.py | 0 | meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} | STRING |
| HIGH | locust/user/task.py | 0 | meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} | STRING |
| HIGH | locust/user/users.py | 0 | meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} | STRING |
| HIGH | examples/custom_wait_function.py | 0 | user class that does requests to the locust web server running on localhost | STRING |
| HIGH | examples/basic.py | 0 | user class that does requests to the locust web server running on localhost | STRING |
| HIGH | examples/multiple_hosts.py | 0 | user class that does requests to the locust web server running on localhost | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | locust/env.py | 159 | # Create a new RequestStats with use_response_times_cache set to False to save some memory | COMMENT |
| MEDIUM | locust/test/test_markov_taskset.py | 223 | # Define a class with abstract=True explicitly | COMMENT |
| MEDIUM | locust/test/test_main.py | 857 | # Define the input filename as well as the resulting filename within the temp directory | COMMENT |
| MEDIUM | docs/conf.py | 2 | # This file is execfile()d with the current directory set to its containing dir. | COMMENT |
| MEDIUM | docs/conf.py | 22 | # Define the canonical URL if you are using a custom domain on Read the Docs | COMMENT |
| MEDIUM | examples/grpc/hello_pb2_grpc.py | 46 | # This class is part of an EXPERIMENTAL API. | COMMENT |
| MEDIUM | examples/socketio/echo_server.py | 12 | # Create a Socket.IO server | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/web.py | 50 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/opentelemetry.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/stats.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/stats.py | 956 | def update_stats_history(runner: Runner, timestamp: str | None = None) -> None: | CODE |
| LOW | locust/runners.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/runners.py | 197 | def update_state(self, new_state: str) -> None: | CODE |
| LOW | locust/util/exception_handler.py | 4 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/user/task.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/user/users.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/contrib/csv_request_logger.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | docs/_ext/llms_txt.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/grpc/hello_server.py | 9 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/runners.py | 361 | # to unexpected behaviours such as the one in the following example: | COMMENT |
| LOW | locust/test/test_dispatch.py | 1081 | self.assertTrue(0 <= delta <= _TOLERANCE, delta) | COMMENT |
| LOW | locust/test/test_dispatch.py | 1101 | # { | COMMENT |
| LOW | docs/conf.py | 1 | # | COMMENT |
| LOW | docs/conf.py | 141 | # There are two options for replacing |today|: either, you set today to some | COMMENT |
| LOW | docs/conf.py | 181 | # HTML theme | COMMENT |
| LOW | examples/testdata_management.py | 1 | # This example shows the various ways to run things before/outside of the normal task execution flow, | COMMENT |
| LOW | examples/open_closed_workload.py | 21 | # so if response times increase to the point where one task execution takes more than 10s, | COMMENT |
| LOW | examples/browse_docs_test.py | 41 | COMMENT | |
| LOW | examples/socketio/socketio_ex.py | 21 | # resp = self.client.post("/login", json={"username": "foo", "password": "bar"}) | COMMENT |
| LOW | benchmarks/dispatch.py | 21 | USER_CLASSES: list[type[User]] = [] | COMMENT |
| LOW | .github/workflows/tests.yml | 561 | # dir: locust/webui | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/contrib/oai.py | 11 | from openai import OpenAI # dont forget to install openai | CODE |
| MEDIUM | examples/testdata_management.py | 43 | # If you want to get something over HTTP at this time you can use `requests` directly: | COMMENT |
| MEDIUM | examples/testdata_management.py | 122 | # If you do not want the request logged, you can replace self.client.<method> with requests.<method> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | AGENTS.md | 3 | Locust is a developer-friendly, open-source load testing framework. This guide helps AI agents understand Locust's struc | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/web.py | 122 | CODE | |
| LOW | locust/env.py | 23 | CODE | |
| LOW | locust/env.py | 168 | CODE | |
| LOW | locust/contrib/fasthttp.py | 196 | CODE | |
| LOW | examples/grpc/hello_pb2_grpc.py | 51 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/test/test_web.py | 1246 | def do_something(self): | CODE |
| LOW⚡ | locust/user/task.py | 398 | def execute_task(self, task): | CODE |
| LOW | locust/user/task.py | 507 | def execute_task(self, task): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/argument_parser.py | 200 | # Check if response is valid python code | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/test/test_runners.py | 3331 | server.mocked_send(Message("test_custom_msg", {"test_data": 123}, "dummy_id")) | CODE |
| LOW | locust/test/test_runners.py | 3353 | server.mocked_send(Message("unregistered_custom_msg", {}, "dummy_id")) | CODE |
| LOW | locust/test/test_runners.py | 4004 | client.mocked_send(Message("unregistered_custom_msg", {}, "dummy_id")) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | locust/contrib/fasthttp.py | 634 | """Override _urlopen() in order to make it use the response_type attribute""" | STRING |