AI Slop Code RIsk Monitor

emqx/emqx

The most scalable and reliable MQTT broker for AI, IoT, IIoT and connected vehicles

6.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for emqx/emqx, a Erlang project with 16,782 GitHub stars. SynthScan examined 87,745 lines of code across 1725 source files, recording 396 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 6.7 (Moderate 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.

6.7
Adjusted Signal
6.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
16.8K
Stars
Erlang
Language
87.7K
Lines of Code
1.7K
Files
396
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 15.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 17.7/100 · LOW

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

PR Review Velocity Impact 30.1/100 · MEDIUM

Which changes need focused human review? 396 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 0HIGH 12MEDIUM 86LOW 298

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 396 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.

Decorative Section Separators72 hits · 222 pts
SeverityFileLineSnippetContext
MEDIUM.ci/docker-compose-file/dex/haproxy.cfg1##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/dex/haproxy.cfg3##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/dex/haproxy.cfg17##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/dex/haproxy.cfg19##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/dex/haproxy.cfg36##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/dex/haproxy.cfg38##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg1##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg3##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg17##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg19##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg30##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg32##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg45##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg47##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg80##----------------------------------------------------------------COMMENT
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg82##----------------------------------------------------------------COMMENT
MEDIUMplugins/emqx_agent/demo_builder_init.py69# ── HTTP helpers ──────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/demo_builder_init.py117# ── Cleanup ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/demo_builder_init.py151# ── Connections ────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/demo_builder_init.py176# ── AI providers ───────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/demo_builder_init.py195# ── Tools ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/demo_builder_init.py225# ── Builder prompt ─────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/demo_builder_init.py451# ── Pipeline ───────────────────────────────────────────────────────────────────STRING
MEDIUMplugins/emqx_agent/demo_builder_init.py497# ── Database setup ────────────────────────────────────────────────────────────STRING
MEDIUMplugins/emqx_agent/demo_builder_init.py535# ── Main ───────────────────────────────────────────────────────────────────────STRING
MEDIUMplugins/emqx_agent/demo_apple_box_init.py105# ── HTTP helpers ──────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/demo_apple_box_init.py162# ── Database setup ─────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/demo_apple_box_init.py217# ── Tools ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/priv/builder.html361 // ── Connection ──────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/priv/builder.html420 // ── Sending ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/priv/builder.html445 // ── Rendering ────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_agent/priv/builder.html535 // ── Misc ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh80## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh82## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh96## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh98## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh140## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh142## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh170## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh172## ================================================================COMMENT
MEDIUM⚡plugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh186## ================================================================COMMENT
MEDIUM⚡plugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh188## ================================================================COMMENT
MEDIUM⚡plugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh193## ================================================================COMMENT
MEDIUM⚡plugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh195## ================================================================COMMENT
MEDIUM⚡plugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh200## ================================================================COMMENT
MEDIUM⚡plugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh202## ================================================================COMMENT
MEDIUM⚡plugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh210## ================================================================COMMENT
MEDIUM⚡plugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh212## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh231## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh233## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh102## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh104## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh116## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh118## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh161## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh163## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh182## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh184## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh196## ================================================================COMMENT
MEDIUMplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh198## ================================================================COMMENT
12 more matches not shown…
Over-Commented Block163 hits · 120 pts
SeverityFileLineSnippetContext
LOW.ci/docker-compose-file/docker-compose-keycloak.yaml1# Keycloak IDP for SAML SSO integration testsCOMMENT
LOW.ci/docker-compose-file/docker-compose-doris-tls.yaml1## N.B.COMMENT
LOW.ci/docker-compose-file/docker-compose-otel.yaml21 command: ["--config=/otel-share/otel-collector-config.yaml", "${OTELCOL_ARGS}"]COMMENT
LOW.ci/docker-compose-file/docker-compose-otel.yaml61# emqx_bridge:COMMENT
LOW.ci/docker-compose-file/docker-compose-dameng.yaml1services:COMMENT
LOW.ci/docker-compose-file/docker-compose-influxdb-v3.yaml61# - subnet: 172.100.239.0/24COMMENT
LOW…i/docker-compose-file/docker-compose-influxdb-tls.yaml21 - "./influxdb/setup-v1.sh:/docker-entrypoint-initdb.d/setup-v1.sh"COMMENT
LOW.ci/docker-compose-file/docker-compose-iceberg.yaml1## https://github.com/databricks/docker-spark-iceberg/blob/60754a31cbb2cea7eead2a16702f5c536a8e07ce/docker-compose.ymlCOMMENT
LOW.ci/docker-compose-file/docker-compose-iceberg.yaml21services:COMMENT
LOW…i/docker-compose-file/docker-compose-influxdb-tcp.yaml21 networks:COMMENT
LOW.ci/docker-compose-file/docker-compose-quasardb.yaml21 # docker run -it --rm --network emqx_bridge --name qdbsh bureau14/qdbsh --cluster qdb://172.100.239.30:2836COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml1# Cassandra storage config YAMLCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml21# on subsequent starts, this setting will apply even if initial token is set.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml41# that do not have vnodes enabled.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml61# are two nodes in the cluster, each delivery thread will use the maximumCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml81COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml101# Please increase system_auth keyspace replication factor if you use this authenticator.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml121# - CassandraRoleManager stores role data in the system_auth keyspace. PleaseCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml141# Validity period for permissions cache (fetching permissions can be anCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml161# underlying table, it may not bring a significant reduction in theCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml181# compatibility include RandomPartitioner, ByteOrderedPartitioner, andCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml201cdc_enabled: falseCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml221# can still be inspected via JMX, kill the JVM for errors during startup.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml241# stop_commitCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml261# Do only change the default value, if you really have more prepared statements thanCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml281# time it saves, so it's worthwhile to use it at large numbers.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml301COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml321# headroom for OS block level cache. Do never allow your system to swap.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml341#COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml361COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml381#COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml401# NOTE: If max_mutation_size_in_kb is set explicitly then commitlog_segment_size_in_mb mustCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml421 - class_name: org.apache.cassandra.locator.SimpleSeedProviderCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml441COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml461COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml481# mean larger flushes and hence less compaction, but also less concurrentCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml501# Total space to use for commit logs on disk.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml521#COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml541# Total space to use for change-data-capture logs on disk.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml561# more than this amount of memory.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml581COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml601# Set listen_address OR listen_interface, not both. Interfaces must correspondCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml621# listen_on_broadcast_address: falseCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml641native_transport_port_ssl: 9142COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml661# Whether to start the thrift rpc server.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml681COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml701#COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml721COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml741# and when not setting it it is defined by net.ipv4.tcp_wmemCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml761# responsibility.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml781# and looking up rows withing the partition by collation columnCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml801# during a single long running compactions. The default is usuallyCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml821# When compacting, the replacement sstable(s) can be opened before theyCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml841# How long the coordinator should wait for read operations to completeCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml861# can be identified. Set this value to zero to disable slow query logging.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml881COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml901# if you need to add another datacenter are GossipingPropertyFileSnitchCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml921# PropertyFileSnitch:COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml941# Proximity is determined by rack and data center, which areCOMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml961# expressed as a double which represents a percentage. Thus, a value ofCOMMENT
103 more matches not shown…
Hyper-Verbose Identifiers62 hits · 54 pts
SeverityFileLineSnippetContext
LOWplugins/emqx_unsgov/priv/ui.html1560 function flattenTreeFiltersFromChildren(children, prefix, out) {CODE
LOWplugins/emqx_agent/demo_apple_box_init.py152def deactivate_pipeline_maybe(pid: str) -> None:CODE
LOWplugins/emqx_agent/priv/ui/tools.js158export function defaultPublishInputSchema() {CODE
LOWscripts/test/test_emqx_boot.py108def test_profile_defaults_to_enterprise():CODE
LOWscripts/test/test_emqx_boot.py115def test_emqx_boot_with_invalid_node_name(emqx_bin_path):CODE
LOWscripts/test/test_emqx_boot.py133def test_hardened_rejects_insecure_cookie(emqx_bin_path):CODE
LOWscripts/test/test_emqx_boot.py149def test_security_profile_defaults_to_hardened(emqx_bin_path):CODE
LOWscripts/test/test_emqx_boot.py171def test_node_cookie_from_file(emqx_bin_path, tmp_path):CODE
LOWscripts/test/test_emqx_boot.py194def test_node_cookie_from_missing_file_fails_fast(emqx_bin_path, tmp_path):CODE
LOWscripts/test/test_emqx_boot.py205def test_node_cookie_from_empty_file_fails_fast(emqx_bin_path, tmp_path):CODE
LOWscripts/test/test_emqx_boot.py218def test_node_cookie_from_fifo_read_once(emqx_bin_path, tmp_path):CODE
LOWscripts/test/test_emqx_boot.py281def test_invalid_security_profile_fails_fast(emqx_bin_path, security_profile):CODE
LOWscripts/test/test_emqx_boot.py300def test_invalid_default_listener_address_fails_fast(emqx_bin_path, default_address):CODE
LOWscripts/test/test_emqx_boot.py318def test_unresolvable_default_listener_address_fails_boot(emqx_bin_path):CODE
LOWscripts/test/test_emqx_boot.py337def test_valid_default_listener_address_accepted(emqx_bin_path, default_address):CODE
LOWscripts/test/test_emqx_boot.py366def test_shipped_env_file_sets_nothing(env_file):CODE
LOWscripts/test/test_emqx_boot.py377def test_env_file_sets_security_profile(emqx_bin_path, env_file):CODE
LOWscripts/test/test_emqx_boot.py390def test_env_file_overrides_environment(emqx_bin_path, env_file):CODE
LOWscripts/test/test_emqx_boot.py405def test_env_file_invalid_security_profile_fails_fast(emqx_bin_path, env_file):CODE
LOWscripts/test/test_emqx_boot.py446def test_dist_tls_without_verification_warns_and_boots(CODE
LOWscripts/test/test_emqx_boot.py468def assert_warns_on_unverified_dist_tls(result):CODE
LOWscripts/test/test_emqx_boot.py485def test_hardened_profile_warns_about_half_migrated_dist_tls(CODE
LOWscripts/test/test_emqx_boot.py511def test_hardened_profile_warns_about_empty_dist_tls_optfile(emqx_bin_path, env_file, tmp_path):CODE
LOWscripts/test/test_emqx_boot.py535def test_duplicate_verify_last_wins_is_not_reported(CODE
LOWscripts/test/test_emqx_boot.py572def test_legacy_profile_warns_about_unverified_dist_tls(CODE
LOWscripts/test/test_emqx_boot.py591def test_verified_dist_tls_starts_under_hardened_profile(emqx_bin_path, env_file, dist_tls_certs):CODE
LOWscripts/test/test_emqx_boot.py616def test_rendered_ssl_dist_conf_verifies_peers(emqx_rel_path):CODE
LOWscripts/test/test_emqx_boot.py637def test_corrupted_cluster_override_conf(emqx_bin_path, emqx_rel_path):CODE
LOWscripts/test/test_emqx_boot.py689def test_corrupted_cluster_hocon(emqx_bin_path, emqx_rel_path):CODE
LOWscripts/test/test_emqx_boot.py724def test_corrupted_base_hocon(emqx_bin_path, emqx_rel_path):CODE
LOWscripts/test/test_emqx_boot.py892def test_acl_file_read_permission_failure(emqx_bin_path, emqx_rel_path):CODE
LOWscripts/test/test_emqx_boot.py913def test_acl_file_corrupted_content(emqx_bin_path, emqx_rel_path):CODE
LOWscripts/test/test_emqx_boot.py963def test_feature_gate_essential(emqx_bin_path):CODE
LOWscripts/test/test_emqx_boot.py1046def test_feature_gate_custom_multiple(emqx_bin_path):CODE
LOWscripts/test/test_emqx_boot.py1077def test_feature_gate_bad_preset(emqx_bin_path):CODE
LOWscripts/test/test_emqx_boot.py1102def test_feature_gate_bad_feature(emqx_bin_path):CODE
LOWscripts/test/test_verify_docker_attestations.py76 def test_preserved_nested_index(self):CODE
LOWscripts/test/test_verify_docker_attestations.py88 def test_rejects_lost_or_mismatched_attestations(self):CODE
LOWscripts/test/test_verify_docker_attestations.py107 def test_rejects_wrong_architecture(self):CODE
LOWscripts/test/test_verify_docker_attestations.py114 def test_public_debian_pr_image(self):CODE
LOWscripts/test/test_find_apps.py261def test_change_app_used_by_others(project_root: Path, original_head: str):CODE
LOWscripts/test/test_find_apps.py285def test_change_app_used_by_all(project_root: Path, original_head: str):CODE
LOWscripts/test/test_find_apps.py311def test_change_app_used_by_none(project_root: Path, original_head: str):CODE
LOWscripts/test/test_find_apps.py331def test_change_multiple_apps(project_root: Path, original_head: str):CODE
LOWscripts/test/test_find_apps.py353def test_change_docker_plugin(project_root: Path, original_head: str):CODE
LOWscripts/test/test_find_apps.py448def test_change_github_directory(project_root: Path, original_head: str):CODE
LOWscripts/test/test_docker_entrypoint.py14def run_entrypoint_with_hostname(tmp_path, hostname_script, extra_env=None):CODE
LOWscripts/test/test_docker_entrypoint.py48def test_entrypoint_falls_back_to_interface_ip_when_hostname_resolution_fails(tmp_path):CODE
LOWscripts/test/test_docker_entrypoint.py69def test_entrypoint_fails_when_node_host_cannot_be_determined(tmp_path):CODE
LOWscripts/test/test_cluster_join.py21def test_successful_join_does_not_retry():CODE
LOWscripts/test/test_cluster_join.py28def test_expected_rejection_captures_stderr_without_retrying():CODE
LOWscripts/test/test_cluster_join.py44def test_successful_command_fails_negative_test(scenario, output):CODE
LOWscripts/test/test_cluster_join.py62def test_other_errors_do_not_pass_negative_test(scenario, output):CODE
LOWscripts/test/test_cluster_join.py73def test_positive_test_retries_boot_failure():CODE
LOWscripts/test/test_cluster_join.py80def test_negative_test_retries_boot_failure():CODE
LOWscripts/sbom/convert_cdx_to_spdx.py84def generate_spdx_id_from_bom_ref(bom_ref: str, component: Dict[str, Any] = None, spdx_id_prefix: str = "SPDXRef-") -> sCODE
LOWscripts/sbom/convert_cdx_to_spdx.py107def convert_component_to_spdx_package(component: Dict[str, Any], spdx_id_prefix: str = "SPDXRef-") -> Dict[str, Any]:CODE
LOWscripts/sbom/convert_cdx_to_spdx.py198def convert_cyclonedx_to_spdx(cdx_path: Path, output_path: Path = None) -> Dict[str, Any]:CODE
LOWscripts/sbom/filter_and_enrich.py65def normalize_license_to_spdx(license_text: str) -> Optional[str]:CODE
LOWscripts/sbom/filter_and_enrich.py165def parse_app_file_for_license(package_dir: Path, package_name: str) -> Optional[str]:CODE
2 more matches not shown…
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHplugins/emqx_agent/demo_builder_init.py113except RuntimeError:CODE
HIGHplugins/emqx_agent/demo_apple_box_init.py148except RuntimeError:CODE
HIGHscripts/sca-hyg.py170except (OSError, IsADirectoryError):CODE
HIGHscripts/test/test_emqx_boot.py882except:CODE
HIGHscripts/test/test_find_apps.py34except Exception:CODE
HIGHscripts/test/test_find_apps.py137except Exception:CODE
HIGHscripts/test/test_find_apps.py32except OSError:CODE
Excessive Try-Catch Wrapping19 hits · 30 pts
SeverityFileLineSnippetContext
LOWplugins/emqx_agent/demo_builder_init.py567 except Exception as e:STRING
LOWplugins/emqx_agent/demo_teardown.py185 except Exception as e:CODE
LOWplugins/emqx_agent/demo_teardown.py195 except Exception as e:CODE
LOWplugins/emqx_agent/demo_apple_box_init.py428 except Exception as e:CODE
LOWscripts/demo-lwm2m-blockwise-wakaama.sh435 except Exception:CODE
MEDIUMscripts/demo-lwm2m-blockwise-wakaama.sh432def on_message(client, userdata, msg):CODE
MEDIUMscripts/find_apps.py204 print("Error: --base-ref requires a value", file=sys.stderr)CODE
LOWscripts/test/test_find_apps.py34 except Exception:CODE
LOWscripts/test/test_find_apps.py137 except Exception:CODE
LOWscripts/test/test_find_apps.py159 except Exception as e:CODE
MEDIUM⚡scripts/sbom/convert_cdx_to_spdx.py305 print(f"Error: Input file not found: {args.input}", file=sys.stderr)CODE
LOW⚡scripts/sbom/convert_cdx_to_spdx.py315 except Exception as e:CODE
MEDIUM⚡scripts/sbom/convert_cdx_to_spdx.py316 print(f"Error converting SBOM: {e}", file=sys.stderr)CODE
LOWscripts/sbom/filter_and_enrich.py207 except Exception as e:CODE
LOWscripts/sbom/filter_and_enrich.py291 except Exception as e:CODE
MEDIUMscripts/sbom/generate_text_report.py17 print("Error: spdx-tools is not installed. Please install it with: pip install spdx-tools", file=sys.stderr)CODE
MEDIUM⚡scripts/sbom/generate_text_report.py66 print(f"Error: Input file not found: {args.input}", file=sys.stderr)CODE
LOW⚡scripts/sbom/generate_text_report.py76 except Exception as e:CODE
MEDIUM⚡scripts/sbom/generate_text_report.py77 print(f"Error: Failed to generate text report using spdx-tools: {e}", file=sys.stderr)CODE
Redundant / Tautological Comments16 hits · 26 pts
SeverityFileLineSnippetContext
LOWscripts/check-api-scopes.sh34 # Check if the file exports scopes/0COMMENT
LOWscripts/find_apps.py55 # Check if mix.exs at root is changedCOMMENT
LOWscripts/find_apps.py59 # Check if .github or .ci directories are changedCOMMENT
LOWscripts/find-suites.sh33 # Check if path prefix is presentCOMMENT
LOWscripts/find-suites.sh38 # Check if suffix is presentCOMMENT
LOWscripts/test/test_emqx_boot.py668 # Check if error message is in output before timeoutCOMMENT
LOWscripts/test/test_emqx_boot.py866 # Check if error message is in output before timeoutCOMMENT
LOWscripts/test/emqx-smoke-test.sh39## Check if EMQX is respondingCOMMENT
LOWscripts/sbom/convert_cdx_to_spdx.py52 # Check if it's already a valid SPDX identifier (contains -)COMMENT
LOWscripts/sbom/convert_cdx_to_spdx.py59 # Check if it looks like a valid SPDX ID (contains version number with dash)COMMENT
LOW⚡scripts/sbom/generate_sbom.sh105# Check if converter script existsCOMMENT
LOW⚡scripts/sbom/generate_sbom.sh111# Check if filter script existsCOMMENT
LOW⚡scripts/sbom/generate_sbom.sh117# Check if report script existsCOMMENT
LOWscripts/sbom/filter_and_enrich.py345 # Check if package already has licenseCOMMENT
LOWscripts/rel/cut.sh281## Check if the Chart versions are in syncCOMMENT
LOWscripts/rel/cut.sh284## Check if app versions are bumpedCOMMENT
AI Response Leakage4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHchanges/e5.4.0.en.md46- [#11766](https://github.com/emqx/emqx/pull/11766) Implemented a preliminary Role-Based Access Control for the REST APICODE
HIGHchanges/v5.4.0.en.md46- [#11766](https://github.com/emqx/emqx/pull/11766) Implemented a preliminary Role-Based Access Control for the REST APICODE
HIGHchanges/e5.3.1.en.md12- [#11565](https://github.com/emqx/emqx/pull/11565) Upgraded jq library from v0.3.10 to v0.3.11. In this version, jq_porCODE
HIGHchanges/v5.3.1.en.md9- [#11565](https://github.com/emqx/emqx/pull/11565) Upgraded jq library from v0.3.10 to v0.3.11. In this version, jq_porCODE
Slop Phrases8 hits · 17 pts
SeverityFileLineSnippetContext
LOW.ci/docker-compose-file/clickhouse/config.xml341 Regexps are not aligned: don't forget to add ^ and $. Also don't forget to escape dot (.) metacharacterCODE
MEDIUM.ci/docker-compose-file/cassandra/cassandra_noauth.yaml38# initial_token allows you to specify tokens manually. While you can use it withCOMMENT
MEDIUM.ci/docker-compose-file/cassandra/cassandra_noauth.yaml650# you may want to adjust max_value_size_in_mb accordingly. This should be positive and less than 2048.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra_noauth.yaml870# Warning: before enabling this property make sure to ntp is installedCOMMENT
MEDIUM.ci/docker-compose-file/cassandra/cassandra.yaml38# initial_token allows you to specify tokens manually. While you can use it withCOMMENT
MEDIUM.ci/docker-compose-file/cassandra/cassandra.yaml650# you may want to adjust max_value_size_in_mb accordingly. This should be positive and less than 2048.COMMENT
LOW.ci/docker-compose-file/cassandra/cassandra.yaml870# Warning: before enabling this property make sure to ntp is installedCOMMENT
LOWscripts/rel/cut.sh371 logwarn "Don't forget to push the tag to emqx/emqx"CODE
Deep Nesting13 hits · 13 pts
SeverityFileLineSnippetContext
LOWscripts/sca-hyg.py18CODE
LOWscripts/verify-docker-attestations.py16CODE
LOWscripts/find_apps.py42CODE
LOWscripts/find_apps.py75CODE
LOWscripts/find_apps.py158CODE
LOWscripts/find_apps.py181CODE
LOWscripts/rerun-apps-version-check.py70CODE
LOWscripts/test/test_verify_docker_attestations.py88CODE
LOWscripts/test/test_find_apps.py23CODE
LOWscripts/sbom/convert_cdx_to_spdx.py70CODE
LOWscripts/sbom/convert_cdx_to_spdx.py149CODE
LOWscripts/sbom/filter_and_enrich.py165CODE
LOWscripts/sbom/filter_and_enrich.py339CODE
Example Usage Blocks8 hits · 12 pts
SeverityFileLineSnippetContext
LOWplugins/emqx_acme/smoke/pebble_smoke.sh26## Usage:COMMENT
LOWplugins/emqx_acme/smoke/cluster/cluster_smoke.sh37## Usage:COMMENT
LOWplugins/emqx_bridge_mqtt_dq/smoke/smoke_docker.sh9## Usage:COMMENT
LOWplugins/emqx_bridge_mqtt_dq/smoke/smoke_bench.sh13## Usage:COMMENT
LOWplugins/emqx_maptabs/smoke/cluster/cluster_smoke.sh37## Usage:COMMENT
LOWscripts/sca-pkg.sh9## Usage:COMMENT
LOWscripts/publish-docker-multi-arch.sh6## Usage:COMMENT
LOWscripts/sbom/generate_sbom.sh13# Usage:COMMENT
Unused Imports9 hits · 9 pts
SeverityFileLineSnippetContext
LOW.ci/docker-compose-file/iceberg/query/server.py1CODE
LOWscripts/find_apps.py14CODE
LOWscripts/find_apps.py16CODE
LOWscripts/rerun-apps-version-check.py7CODE
LOWscripts/rerun-apps-version-check.py11CODE
LOWscripts/rerun-apps-version-check.py12CODE
LOWscripts/rerun-apps-version-check.py13CODE
LOWscripts/sbom/filter_and_enrich.py17CODE
LOWscripts/sbom/filter_and_enrich.py21CODE
Verbosity Indicators4 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡scripts/sbom/generate_sbom.sh123# Step 1: Generate CycloneDX SBOMCOMMENT
LOWscripts/sbom/generate_sbom.sh142# Step 2: Convert CycloneDX to SPDXCOMMENT
LOWscripts/sbom/generate_sbom.sh161# Step 3: Filter SPDX SBOMCOMMENT
LOWscripts/sbom/generate_sbom.sh184# Step 4: Generate text reportCOMMENT
Structural Annotation Overuse4 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡scripts/sbom/generate_sbom.sh123# Step 1: Generate CycloneDX SBOMCOMMENT
LOWscripts/sbom/generate_sbom.sh142# Step 2: Convert CycloneDX to SPDXCOMMENT
LOWscripts/sbom/generate_sbom.sh161# Step 3: Filter SPDX SBOMCOMMENT
LOWscripts/sbom/generate_sbom.sh184# Step 4: Generate text reportCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.ci/docker-compose-file/haproxy/haproxy.cfg65 # Create a stick table for session persistenceCOMMENT
MEDIUMscripts/gen-elp-build-info.sh24# This function contains the original, working logic for processing an app directory.COMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/sbom/generate_text_report.py22Generate human-readable text report from SPDX SBOM using spdx-tools. Args: sbom_path: Path to SPDX JSONSTRING
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMplugins/emqx_maptabs/smoke/cluster/cluster_smoke.sh249## mria replication to the peer and the peer's event-driven cacheCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.ci/docker-compose-file/dex/config.dev.yaml44 - email: "admin@example.com"CODE
LOW.ci/docker-compose-file/keycloak/realm-export.json25 "email": "admin@example.com",CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/find_apps.py112 # App not found in deps.txt, just add the changed app itselfCOMMENT