AI Slop Code RIsk Monitor

eclipse-mosquitto/mosquitto

Eclipse Mosquitto - An open source MQTT broker

9.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for eclipse-mosquitto/mosquitto, a C project with 11,260 GitHub stars. SynthScan examined 214,342 lines of code across 1581 source files, recording 1287 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 9.9 (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.

9.9
Adjusted Signal
9.9
Raw Pattern Score
100%
Time Factor
2026-10-04
Last Push
11.3K
Stars
C
Language
214.3K
Lines of Code
1.6K
Files
1.3K
Pattern Hits
2026-10-12
Scan Date
0.11
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 8.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 13.1/100 · LOW

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

Agent Over-Engineering Ratio 23.9/100 · LOW

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

PR Review Velocity Impact 42.2/100 · MEDIUM

Which changes need focused human review? 1287 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 176MEDIUM 90LOW 1021

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 1287 distinct pattern matches across 14 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.

Empty Error Handlers174 hits · 870 pts
SeverityFileLineSnippetContext
HIGHbuildtest.py71except FileNotFoundError:CODE
HIGHfuzzing/generate_packet_corpora.py25except FileExistsError:CODE
HIGHfuzzing/generate_packet_corpora.py29except FileExistsError:CODE
HIGHtest/mosquitto_broker.py156except FileNotFoundError:CODE
HIGHtest/ptest.py189except FileNotFoundError:CODE
HIGHtest/mosq_test.py304except socket.timeout:CODE
HIGHtest/mosq_test.py1090except OSError:CODE
HIGHtest/broker/04-retain-check-source-persist.py39except OSError:CODE
HIGHtest/broker/04-retain-check-source-persist.py84except mosq_test.TestError:CODE
HIGHtest/broker/09-pwfile-parse-invalid.py36except mosq_test.TestError:CODE
HIGHtest/broker/09-pwfile-parse-invalid.py67except ValueError:CODE
HIGHtest/broker/mosq_test_helper.py110except FileNotFoundError:CODE
HIGHtest/broker/06-bridge-clean-session-core.py244except mosq_test.TestError:CODE
HIGHtest/broker/01-connect-allow-anonymous.py78except mosq_test.TestError:CODE
HIGHtest/broker/09-extended-auth-change-username.py72except mosq_test.TestError:CODE
HIGHtest/broker/14-dynsec-group-invalid.py328except FileExistsError:CODE
HIGHtest/broker/14-dynsec-group-invalid.py415except mosq_test.TestError:CODE
HIGHtest/broker/14-dynsec-group-invalid.py421except FileNotFoundError:CODE
HIGHtest/broker/16-config-includedir.py33except mosq_test.TestError:CODE
HIGHtest/broker/08-ssl-connect-cert-auth-without.py36except ssl.SSLEOFError as err:CODE
HIGHtest/broker/21-proxy-v2-bad-config.py28except subprocess.TimeoutExpired:CODE
HIGHtest/broker/02-subscribe-long-topic.py20except BrokenPipeError:CODE
HIGHtest/broker/06-bridge-reconnect-local-out.py49except OSError:CODE
HIGHtest/broker/06-bridge-reconnect-local-out.py97except mosq_test.TestError:CODE
HIGHtest/broker/06-bridge-reconnect-local-out.py115except OSError:CODE
HIGHtest/broker/11-pub-props.py69except mosq_test.TestError:CODE
HIGHtest/broker/14-dynsec-client.py73except FileExistsError:CODE
HIGHtest/broker/14-dynsec-client.py130except mosq_test.TestError:CODE
HIGHtest/broker/14-dynsec-client.py136except FileNotFoundError:CODE
HIGHtest/broker/21-proxy-v2-ssl-require-tls-failure.py35except ConnectionResetError:CODE
HIGHtest/broker/21-proxy-v2-ssl-common-name-failure.py41except (BrokenPipeError, ConnectionResetError):CODE
HIGHtest/broker/09-plugin-evt-reload.py42except mosq_test.TestError:CODE
HIGHtest/broker/01-bad-initial-packets.py22except (ConnectionResetError, BrokenPipeError):CODE
HIGHtest/broker/09-plugin-unsupported.py25except mosq_test.TestError:CODE
HIGHtest/broker/14-dynsec-plugin-invalid.py99except FileExistsError:CODE
HIGHtest/broker/14-dynsec-plugin-invalid.py126except mosq_test.TestError:CODE
HIGHtest/broker/14-dynsec-plugin-invalid.py132except FileNotFoundError:CODE
HIGHtest/broker/03-publish-qos2-max-inflight-exceeded.py31except BrokenPipeError:CODE
HIGHtest/broker/13-websocket-bad-origin.py36except BrokenPipeError:CODE
HIGHtest/broker/06-bridge-br2b-disconnect-qos1.py99except mosq_test.TestError:CODE
HIGHtest/broker/06-bridge-br2b-disconnect-qos1.py105except NameError:CODE
HIGHtest/broker/01-connect-global-max-connections.py40except (ConnectionAbortedError, ConnectionResetError, BrokenPipeError, OSError):CODE
HIGHtest/broker/01-connect-global-max-connections.py63except (ConnectionAbortedError, ConnectionResetError, BrokenPipeError, OSError):CODE
HIGHtest/broker/06-bridge-br2b-remapping.py113except mosq_test.TestError:CODE
HIGHtest/broker/06-bridge-br2b-remapping.py119except NameError:CODE
HIGHtest/broker/14-dynsec-config-init-random.py23except FileExistsError:CODE
HIGHtest/broker/14-dynsec-config-init-random.py61except mosq_test.TestError:CODE
HIGHtest/broker/14-dynsec-config-init-random.py67except FileNotFoundError:CODE
HIGHtest/broker/14-dynsec-config-init-random.py71except FileNotFoundError:CODE
HIGHtest/broker/03-publish-qos1-queued-bytes.py150except mosq_test.TestError:CODE
HIGHtest/broker/11-subscription-id.py74except mosq_test.TestError:CODE
HIGHtest/broker/21-proxy-v2-long-tlv.py38except ConnectionResetError:CODE
HIGHtest/broker/14-dynsec-allow-wildcard.py78except FileExistsError:CODE
HIGHtest/broker/14-dynsec-allow-wildcard.py118except mosq_test.TestError:CODE
HIGHtest/broker/14-dynsec-allow-wildcard.py124except FileNotFoundError:CODE
HIGHtest/broker/06-bridge-b2br-remapping.py141except mosq_test.TestError:CODE
HIGHtest/broker/06-bridge-b2br-remapping.py147except NameError:CODE
HIGHtest/broker/06-bridge-b2br-late-connection-retain.py94except mosq_test.TestError:CODE
HIGHtest/broker/06-bridge-b2br-late-connection-retain.py100except NameError:CODE
HIGHtest/broker/msg_sequence_test.py244except KeyError:CODE
114 more matches not shown…
Unused Imports593 hits · 590 pts
SeverityFileLineSnippetContext
LOWrun_tests.py3CODE
LOWrun_tests.py4CODE
LOWfuzzing/generate_packet_corpora.py14CODE
LOWtest/ptest.py5CODE
LOWtest/mosq_test.py25CODE
LOWtest/mqtt5_props.py2CODE
LOWtest/broker/08-ssl-connect-no-auth-wrong-ca.py5CODE
LOWtest/broker/02-subhier-crash.py5CODE
LOWtest/broker/09-plugin-auth-v5-unpwd-fail.py3CODE
LOWtest/broker/02-subpub-qos1-message-expiry.py12CODE
LOWtest/broker/17-control-list-listeners.py5CODE
LOWtest/broker/17-control-list-listeners.py10CODE
LOWtest/broker/04-retain-check-source-persist.py5CODE
LOWtest/broker/22-http-api-auth.py3CODE
LOWtest/broker/22-http-api-auth.py9CODE
LOWtest/broker/22-http-api-auth.py10CODE
LOWtest/broker/09-pwfile-parse-invalid.py5CODE
LOWtest/broker/08-ssl-connect-cert-auth-crl.py3CODE
LOWtest/broker/mosq_test_helper.py12CODE
LOWtest/broker/mosq_test_helper.py14CODE
LOWtest/broker/mosq_test_helper.py15CODE
LOWtest/broker/mosq_test_helper.py16CODE
LOWtest/broker/mosq_test_helper.py17CODE
LOWtest/broker/mosq_test_helper.py18CODE
LOWtest/broker/mosq_test_helper.py20CODE
LOWtest/broker/mosq_test_helper.py21CODE
LOWtest/broker/mosq_test_helper.py22CODE
LOWtest/broker/mosq_test_helper.py24CODE
LOWtest/broker/mosq_test_helper.py25CODE
LOWtest/broker/mosq_test_helper.py26CODE
LOWtest/broker/06-bridge-clean-session-core.py21CODE
LOWtest/broker/01-connect-allow-anonymous.py5CODE
LOWtest/broker/07-will-takeover.py5CODE
LOWtest/broker/01-connect-unix-socket.py5CODE
LOWtest/broker/02-subpub-qos0-oversize-payload.py5CODE
LOWtest/broker/09-extended-auth-change-username.py5CODE
LOWtest/broker/15-persist-client-msg-out-v5-0.py6CODE
LOWtest/broker/15-persist-client-msg-in-v3-1-1.py6CODE
LOWtest/broker/09-plugin-auth-defer-unpwd-fail.py5CODE
LOWtest/broker/09-plugin-auth-unpwd-success.py6CODE
LOWtest/broker/02-subpub-qos1-oversize-payload.py5CODE
LOWtest/broker/23-security-acl-file-reload.py3CODE
LOWtest/broker/12-prop-maximum-packet-size-broker.py5CODE
LOWtest/broker/08-ssl-connect-no-identity.py5CODE
LOWtest/broker/persist_module_helper.py7CODE
LOWtest/broker/09-plugin-evt-message-out.py3CODE
LOWtest/broker/03-publish-b2c-disconnect-qos1.py5CODE
LOWtest/broker/12-prop-response-topic.py9CODE
LOWtest/broker/09-plugin-auth-v4-unpwd-success.py6CODE
LOWtest/broker/09-plugin-evt-client-offline.py3CODE
LOWtest/broker/02-subpub-qos1-message-expiry-will.py12CODE
LOWtest/broker/15-persist-client-will-persistent.py6CODE
LOWtest/broker/07-will-reconnect-1273.py7CODE
LOWtest/broker/09-plugin-load-basic-auth.py5CODE
LOWtest/broker/14-dynsec-group-invalid.py5CODE
LOWtest/broker/14-dynsec-group-invalid.py6CODE
LOWtest/broker/14-dynsec-group-invalid.py7CODE
LOWtest/broker/07-will-oversize-payload.py5CODE
LOWtest/broker/02-subpub-b2c-topic-alias.py6CODE
LOWtest/broker/03-publish-long-topic.py8CODE
533 more matches not shown…
Over-Commented Block328 hits · 272 pts
SeverityFileLineSnippetContext
LOWconfig.h1#ifndef CONFIG_HCOMMENT
LOWconfig.h21/* ============================================================COMMENT
LOWconfig.h41# define strtok_r strtok_sCOMMENT
LOWconfig.h61COMMENT
LOWconfig.h81#define WS_IS_BUILTIN 2COMMENT
LOW.uncrustify.cfg21#COMMENT
LOW.uncrustify.cfg41string_replace_tab_chars = false # true/falseCOMMENT
LOW.uncrustify.cfg81#COMMENT
LOW.uncrustify.cfg101COMMENT
LOW.uncrustify.cfg121# Add or remove space after the argument list of a C++11 lambda, as inCOMMENT
LOW.uncrustify.cfg201COMMENT
LOW.uncrustify.cfg261# in a function pointer definition.COMMENT
LOW.uncrustify.cfg281COMMENT
LOW.uncrustify.cfg301sp_after_byref = ignore # ignore/add/remove/forceCOMMENT
LOW.uncrustify.cfg321# This also affects some other instances of space following a type that areCOMMENT
LOW.uncrustify.cfg381# Add or remove space inside '(' and ')' of control statements other thanCOMMENT
LOW.uncrustify.cfg521# Add or remove space between an open parenthesis and comma,COMMENT
LOW.uncrustify.cfg561# Add or remove space before class ':'.COMMENT
LOW.uncrustify.cfg621COMMENT
LOW.uncrustify.cfg881#COMMENT
LOW.uncrustify.cfg901sp_deref = remove # ignore/add/remove/forceCOMMENT
LOW.uncrustify.cfg1001# Add or remove space around the '?' in 'b ? t : f'.COMMENT
LOW.uncrustify.cfg1041# remove space after the '//' and the pvs command '-V1234',COMMENT
LOW.uncrustify.cfg1081# Add or remove space after the open parenthesis of the new operator,COMMENT
LOW.uncrustify.cfg1101# Default: forceCOMMENT
LOW.uncrustify.cfg1141# If true, a <TAB> is inserted after #define.COMMENT
LOW.uncrustify.cfg1161indent_ignore_first_continue = false # true/falseCOMMENT
LOW.uncrustify.cfg1181# overrides the indent.COMMENT
LOW.uncrustify.cfg1281# Virtual indent from the ':' for leading member initializers.COMMENT
LOW.uncrustify.cfg1301# <0: RelativeCOMMENT
LOW.uncrustify.cfg1321COMMENT
LOW.uncrustify.cfg1361# This allows reducing the indent in macros that have (for example)COMMENT
LOW.uncrustify.cfg1441# Whether to ignore indent for goto labels.COMMENT
LOW.uncrustify.cfg1461# Whether to indent the code after an access specifier by one level.COMMENT
LOW.uncrustify.cfg1481# Whether to indent the open parenthesis of a function declaration,COMMENT
LOW.uncrustify.cfg1541indent_ignore_assign = false # true/falseCOMMENT
LOW.uncrustify.cfg1561COMMENT
LOW.uncrustify.cfg1581COMMENT
LOW.uncrustify.cfg1621# How to indent compound literals that are being returned.COMMENT
LOW.uncrustify.cfg1921nl_template_class_decl_special = ignore # ignore/add/remove/forceCOMMENT
LOW.uncrustify.cfg1941COMMENT
LOW.uncrustify.cfg1981nl_enum_own_lines = ignore # ignore/add/remove/forceCOMMENT
LOW.uncrustify.cfg2201# structures. If set to ignore, uses nl_after_brace_close.COMMENT
LOW.uncrustify.cfg2301COMMENT
LOW.uncrustify.cfg2381COMMENT
LOW.uncrustify.cfg2401# Only works when nl_after_func_body is 0.COMMENT
LOW.uncrustify.cfg2421nl_typedef_blk_start = 0 # unsigned numberCOMMENT
LOW.uncrustify.cfg2441COMMENT
LOW.uncrustify.cfg2501# applicable, otherwise no change.COMMENT
LOW.uncrustify.cfg2521#COMMENT
LOW.uncrustify.cfg2581# The number of newlines before a whole-file #endif.COMMENT
LOW.uncrustify.cfg2641# Try to limit code width to N columns.COMMENT
LOW.uncrustify.cfg2681align_func_params_span = 0 # unsigned numberCOMMENT
LOW.uncrustify.cfg2701align_constr_value_thresh = 0 # numberCOMMENT
LOW.uncrustify.cfg2721COMMENT
LOW.uncrustify.cfg2761# Whether to align inline struct/enum/union variable definitions.COMMENT
LOW.uncrustify.cfg2781# definitions are found on the same line.COMMENT
LOW.uncrustify.cfg2801# 2: Don't alignCOMMENT
LOW.uncrustify.cfg2821# Use a negative number for absolute thresholds.COMMENT
LOW.uncrustify.cfg2841align_var_struct_gap = 0 # unsigned numberCOMMENT
268 more matches not shown…
Decorative Section Separators79 hits · 244 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt178# ========================================COMMENT
MEDIUMCMakeLists.txt180# ========================================COMMENT
MEDIUM⚡CMakeLists.txt242# ========================================COMMENT
MEDIUM⚡CMakeLists.txt244# ========================================COMMENT
MEDIUM⚡CMakeLists.txt251# ========================================COMMENT
MEDIUM⚡CMakeLists.txt253# ========================================COMMENT
MEDIUM⚡CMakeLists.txt260# ========================================COMMENT
MEDIUM⚡CMakeLists.txt262# ========================================COMMENT
MEDIUMCMakeLists.txt310# ========================================COMMENT
MEDIUMCMakeLists.txt312# ========================================COMMENT
MEDIUM⚡test/mosq_test.py753# =============================================COMMENT
MEDIUM⚡test/mosq_test.py755# =============================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py36# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py38# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py68# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py70# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py88# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py90# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py125# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py127# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py162# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py164# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py199# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py201# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py236# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py238# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py256# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py258# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py276# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-group-invalid.py278# ==========================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py22 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py25 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py37 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py39 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py102 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py104 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py151 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py153 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py198 # ======================================================================COMMENT
MEDIUMtest/broker/20-sparkplug-aware.py200 # ======================================================================COMMENT
MEDIUMtest/broker/09-extended-auth-multistep-reauth.py9# ==========COMMENT
MEDIUMtest/broker/09-extended-auth-multistep-reauth.py28# ===========COMMENT
MEDIUMtest/broker/09-extended-auth-multistep-reauth.py48# ========================================COMMENT
MEDIUMtest/broker/14-dynsec-plugin-invalid.py35# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-plugin-invalid.py37# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-plugin-invalid.py75# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-plugin-invalid.py77# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py40# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py42# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py72# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py74# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py92# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py94# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py113# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py115# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py148# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py150# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py180# ==========================================================================COMMENT
MEDIUMtest/broker/14-dynsec-role-invalid.py182# ==========================================================================COMMENT
MEDIUM⚡test/broker/14-dynsec-client-invalid.py300# ==========================================================================COMMENT
19 more matches not shown…
Excessive Try-Catch Wrapping30 hits · 34 pts
SeverityFileLineSnippetContext
LOWtest/mosq_test.py44 except Exception as e:CODE
LOWtest/mosq_test.py240 except Exception:CODE
LOWtest/mosq_test.py260 except Exception as e:CODE
LOWtest/mosq_test.py719 except Exception as err:CODE
LOW⚡test/mosq_test.py744 except Exception:CODE
MEDIUMtest/mosq_test.py113def broker_log(broker):CODE
LOWtest/broker/mosq_test_helper.py103 except Exception as e:CODE
LOWtest/broker/06-bridge-clean-session-core.py242 except Exception as e:CODE
LOWtest/broker/09-plugin-load-basic-auth.py97 except Exception as err:CODE
LOWtest/broker/16-config-includedir.py35 except Exception as e:CODE
LOWtest/broker/16-config-huge.py203 except Exception as err:CODE
LOWtest/broker/09-plugin-evt-psk-key.py106 except Exception as err:CODE
LOWtest/broker/09-plugin-load-extended-auth.py80 except Exception as err:CODE
LOWtest/broker/09-plugin-load-acl.py50 except Exception as err:CODE
LOWtest/broker/15-persist-migrate-db.py39 except Exception as err:CODE
LOWtest/broker/15-persist-migrate-db.py70 except Exception as exc:CODE
LOWtest/apps/ctrl/ctrl-broker.py85except Exception as err:CODE
LOWtest/apps/db_dump/db-dump-stats-current.py86 except Exception as e:CODE
LOWtest/apps/passwd/passwd-changes.py115except Exception as err:CODE
LOWtest/client/03-publish-socks.py79 except Exception as e:CODE
LOWtest/client/03-publish-file-empty.py59 except Exception as e:CODE
LOWtest/client/03-publish-options-file.py64 except Exception as e:CODE
LOWtest/client/04-rr-retain-handling.py69 except Exception as e:CODE
LOWtest/client/02-subscribe-retain-handling.py64 except Exception as e:CODE
LOWtest/client/03-publish-tls.py69 except Exception as e:CODE
LOWtest/client/03-publish-socks-auth-failed.py71 except Exception as e:CODE
LOWtest/client/03-publish-file.py56 except Exception as e:CODE
LOWtest/client/03-publish-socks-no-auth.py79 except Exception as e:CODE
MEDIUMplugins/persist-sqlite/migrate_to_persist_sqlite.py67 print(f"Error during SQLite3 DB initialization. Reason: {str(err)}")CODE
MEDIUMplugins/persist-sqlite/migrate_to_persist_sqlite.py295 print(f"Error during SQLite3 DB creation. Reason: {str(err)}")CODE
Deep Nesting32 hits · 32 pts
SeverityFileLineSnippetContext
LOWfuzzing/generate_packet_corpora.py22CODE
LOWtest/broker_config.py82CODE
LOWtest/broker_config.py132CODE
LOWtest/ptest.py117CODE
LOWtest/mosq_test.py120CODE
LOWtest/mosq_test.py287CODE
LOWtest/mosq_test.py438CODE
LOWtest/mosq_test.py665CODE
LOWtest/mosq_test.py1082CODE
LOWtest/mosq_test.py791CODE
LOWtest/mosq_test.py928CODE
LOWtest/mqtt5_props.py86CODE
LOWtest/mqtt5_props.py157CODE
LOWtest/broker/01-connect-allow-anonymous.py50CODE
LOWtest/broker/persist_module_helper.py80CODE
LOWtest/broker/21-proxy-v2-bad-header.py17CODE
LOWtest/broker/persist_client_will_core.py49CODE
LOWtest/broker/01-connect-accept-protocol.py10CODE
LOWtest/broker/msg_sequence_test.py168CODE
LOWtest/broker/msg_sequence_test.py219CODE
LOWtest/broker/msg_sequence_test.py138CODE
LOWtest/broker/06-bridge-config-reload.py55CODE
LOWtest/broker/15-persist-client-drop-expired-messages.py25CODE
LOWtest/broker/15-persist-client-expired-session.py24CODE
LOWtest/broker/15-persist-bridge-queue.py28CODE
LOWtest/broker/15-persist-client-msg-modify-acl.py15CODE
LOWtest/broker/persist_sqlite.py57CODE
LOWtest/broker/01-connect-uname-or-anon.py12CODE
LOWtest/broker/15-persist-migrate-db.py15CODE
LOWtest/lib/msg_sequence_test.py191CODE
LOWtest/lib/msg_sequence_test.py263CODE
LOWtest/lib/msg_sequence_test.py166CODE
Hyper-Verbose Identifiers18 hits · 18 pts
SeverityFileLineSnippetContext
LOWtest/matchers.py296 def _check_additional_mapping_entries(self, candidate, expectation):CODE
LOWtest/matchers.py338 def _check_additional_mapping_entries(self, candidate, expectation):CODE
LOWtest/broker/06-bridge-clean-session-core.py66def wait_for_bridge_to_connect(port, clientid):CODE
LOWtest/broker/msg_sequence_test.py81 def _publish_external_message(self, msg):CODE
LOWtest/broker/06-bridge-config-reload.py47def expect_no_incoming_connection(sock):CODE
LOWtest/broker/20-sparkplug-compliance.py34def tck_id_conformance_mqtt_will_messages(port, proto_ver):CODE
LOWtest/broker/20-sparkplug-compliance.py40def tck_id_conformance_mqtt_retained(port, proto_ver):CODE
LOWtest/broker/09-plugin-load-extended-auth.py17def client_check_start_denied(start_data, rc, port):CODE
LOWtest/broker/09-plugin-load-extended-auth.py34def client_check_start_allowed(start_data, cont_data, rc, port):CODE
LOWplugins/dynamic-security/migrate_to_dynsec.py43 def create_role_with_permissions(CODE
LOWplugins/dynamic-security/migrate_to_dynsec.py60 def create_role_with_full_permissions(CODE
LOWplugins/dynamic-security/migrate_to_dynsec.py263 def topic_or_pattern_sanity_check(acl_file_line: str, tokens: list[str]) -> None:CODE
LOWplugins/dynamic-security/migrate_to_dynsec.py283 def parse_topic_or_pattern_acl(acl_file_line: str) -> list[DynSecAcl]:CODE
LOWplugins/persist-sqlite/migrate_to_persist_sqlite.py88 def __create_client_msgs_table(self):CODE
LOWplugins/persist-sqlite/migrate_to_persist_sqlite.py140 def __create_subscriptions_table(self):CODE
LOWplugins/persist-sqlite/migrate_to_persist_sqlite.py152 def __create_version_info_table(self):CODE
LOWplugins/persist-sqlite/migrate_to_persist_sqlite.py284 def migrate_to_persist_sqlite(CODE
LOWplugins/persist-sqlite/migrate_to_persist_sqlite.py312def dump_mosquitto_db_to_json(CODE
Slop Phrases5 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMwww/conf.py177# you can use the ISO 8601/RFC 3339 format (ex. 2012-03-30T23:00:00+02:00)COMMENT
MEDIUMwww/conf.py1172# With the following example configuration you can use a custom jinja templateCOMMENT
MEDIUMwww/conf.py1200# Pandoc does not demote headers by default. To enable this, you can use, for exampleCOMMENT
MEDIUMwww/conf.py1371# # 'card': 'summary', # Card type, you can also use 'summary_large_image',COMMENT
LOWwww/conf.py74# WARNING: If you link to directories, make sure to followCOMMENT
Overly Generic Function Names12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/broker/03-publish-b2c-disconnect-qos1.py7def helper(port):CODE
LOWtest/broker/05-clean-session-qos1.py7def helper(port):CODE
LOWtest/broker/02-subpub-qos2-max-inflight-bytes.py13def helper(port):CODE
LOWtest/broker/07-will-null.py7def helper(port, proto_ver):CODE
LOWtest/broker/02-subpub-qos2-receive-maximum-1.py8def helper(port):CODE
LOWtest/broker/03-publish-b2c-qos2-len.py8def helper(port):CODE
LOWtest/broker/15-persist-subscription-v3-1-1.py9def helper(port, packets):CODE
LOWtest/broker/15-persist-subscription-v5-0.py9def helper(port, packets):CODE
LOWtest/broker/02-subpub-qos2-receive-maximum-2.py8def helper(port):CODE
LOWtest/broker/10-listener-mount-point.py8def helper(port, proto_ver):CODE
LOWtest/broker/03-publish-b2c-qos1-len.py8def helper(port):CODE
LOWtest/broker/03-publish-b2c-disconnect-qos2.py8def helper(port):CODE
Self-Referential Comments3 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtest/broker/14-dynsec-allow-wildcard.py90 # Create a group, add a role to the group, add the client to the groupCOMMENT
MEDIUM⚡test/broker/14-dynsec-client-invalid.py304# Create a client to modifyCOMMENT
MEDIUMtest/broker/14-dynsec-acl.py247 # Create a group, add a role to the group, add the client to the groupCOMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtest/broker/21-proxy-v2-long-tlv.py41 broker.check_log(Contains("Client (null) [(null):0] disconnected: bad socket read/write: Invalid input"))CODE
HIGHtest/client/02-subscribe-null.py53 expected_output = topic + ' (null)\n'CODE
AI Slop Vocabulary5 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM.uncrustify.cfg3635# Whether to apply special formatting for Qt SIGNAL/SLOT macros. Essentially,COMMENT
LOWtest/ssl/gen.sh2# None of the keys are encrypted, so do not just use this script to generateCOMMENT
LOWwww/conf.py550# If you don't need any of these, just set to []COMMENT
LOWwww/conf.py1138# text!), just use this config:COMMENT
LOWwww/conf.py1160# conflict with running text!), just use this config:COMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/mosquitto_broker.py15CODE
LOWtest/mosq_test.py120CODE
LOWtest/mqtt_packets.py52CODE
LOWtest/broker/persist_sqlite.py150CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmisc/letsencrypt/mosquitto-copy.sh26 # Set ownership to MosquittoCOMMENT
LOWwww/conf.py1311# Set this to False if you want to host your site without requiring access toCOMMENT