🐀 A decentralised discussion platform for communities.
This report summarizes scanner evidence for LemmyNet/lemmy, a Rust project with 14,658 GitHub stars. SynthScan examined 101,290 lines of code across 765 source files, recording 86 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.9 (Low 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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 85 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 86 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 86 distinct pattern matches across 5 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 | crates/db_schema/src/lib.rs | 61 | #[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)] | COMMENT |
| LOW | crates/db_schema/src/lib.rs | 101 | COMMENT | |
| LOW | crates/db_schema/src/source/local_site_rate_limit.rs | 1 | use chrono::{DateTime, Utc}; | COMMENT |
| LOW | crates/db_schema/src/source/local_site_rate_limit.rs | 41 | #[derive(Clone, derive_new::new)] | COMMENT |
| LOW | crates/db_schema/src/source/oauth_provider.rs | 21 | /// The issuer url of the OAUTH provider. | COMMENT |
| LOW | crates/db_schema/src/source/oauth_provider.rs | 61 | #[skip_serializing_none] | COMMENT |
| LOW | crates/db_schema/src/source/comment.rs | 121 | pub locked: Option<bool>, | COMMENT |
| LOW | crates/db_schema/src/source/person.rs | 121 | #[skip_serializing_none] | COMMENT |
| LOW | crates/db_schema/src/source/post.rs | 221 | derive(Identifiable, Queryable, Selectable, Associations, CursorKeysModule) | COMMENT |
| LOW | crates/db_schema/src/source/instance.rs | 61 | #[cfg_attr(feature = "full", diesel(check_for_backend(diesel::pg::Pg)))] | COMMENT |
| LOW | crates/db_schema/src/source/multi_community.rs | 121 | #[skip_serializing_none] | COMMENT |
| LOW | crates/db_schema/src/source/local_site.rs | 21 | #[derive(PartialEq, Eq, Debug, Clone, Serialize, Deserialize, Default)] | COMMENT |
| LOW | crates/db_schema/src/source/images.rs | 41 | } | COMMENT |
| LOW | crates/db_schema/src/source/login_token.rs | 1 | use chrono::{DateTime, Utc}; | COMMENT |
| LOW | crates/db_schema/src/source/community.rs | 241 | #[cfg_attr(feature = "full", diesel(check_for_backend(diesel::pg::Pg)))] | COMMENT |
| LOW | crates/db_schema/src/source/community.rs | 261 | pub follow_state: Option<CommunityFollowerState>, | COMMENT |
| LOW | crates/db_schema/src/source/community_tag.rs | 61 | } | COMMENT |
| LOW | crates/db_schema/src/impls/community.rs | 201 | type_: &Option<ListingType>, | COMMENT |
| LOW | crates/db_views/post/src/impls.rs | 321 | pub search_title_only: Option<bool>, | COMMENT |
| LOW | crates/db_views/post/src/api.rs | 101 | #[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))] | COMMENT |
| LOW | crates/db_views/post/src/api.rs | 161 | /// The site metadata response. | COMMENT |
| LOW | crates/db_views/post/src/api.rs | 241 | #[skip_serializing_none] | COMMENT |
| LOW | crates/db_views/post/src/db_perf/series.rs | 21 | /// For example, if there's a `numbers` table with a `number` column, this inserts all numbers from | COMMENT |
| LOW | crates/db_views/modlog/src/lib.rs | 21 | #[skip_serializing_none] | COMMENT |
| LOW | crates/db_views/person/src/api.rs | 21 | #[cfg_attr(feature = "ts-rs", ts(optional_fields, export))] | COMMENT |
| LOW | crates/db_views/person/src/api.rs | 61 | COMMENT | |
| LOW | crates/db_views/comment/src/api.rs | 61 | COMMENT | |
| LOW | crates/db_views/report_combined/src/api.rs | 41 | COMMENT | |
| LOW | crates/db_views/site/src/lib.rs | 21 | pub mod impls; | COMMENT |
| LOW | crates/db_views/site/src/lib.rs | 41 | #[derive(Debug, Serialize, Deserialize, Clone)] | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 281 | pub oauth_registration: Option<bool>, | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 361 | pub captcha_enabled: bool, | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 401 | #[cfg_attr(feature = "ts-rs", ts(optional_fields, export))] | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 421 | pub struct GenerateTotpSecretResponse { | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 441 | pub username_or_email: SensitiveString, | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 501 | #[cfg_attr(feature = "ts-rs", ts(optional_fields, export))] | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 621 | COMMENT | |
| LOW | crates/db_views/site/src/api.rs | 681 | } | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 741 | #[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))] | COMMENT |
| LOW | crates/db_views/site/src/api.rs | 781 | #[serde(default)] | COMMENT |
| LOW | crates/db_views/community/src/lib.rs | 21 | #[cfg(feature = "full")] | COMMENT |
| LOW | crates/db_views/community/src/api.rs | 81 | COMMENT | |
| LOW | crates/db_views/community/src/api.rs | 161 | #[skip_serializing_none] | COMMENT |
| LOW | crates/server/src/lib.rs | 61 | static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; | COMMENT |
| LOW | crates/server/src/lib.rs | 81 | /// If you are running multiple Lemmy server processes, you probably want to disable scheduled | COMMENT |
| LOW | crates/server/src/lib.rs | 101 | /// | COMMENT |
| LOW | crates/utils/src/settings/structs.rs | 21 | #[doku(example = "Some(Default::default())")] | COMMENT |
| LOW | crates/utils/src/settings/structs.rs | 81 | #[serde(default, deny_unknown_fields)] | COMMENT |
| LOW | crates/utils/src/settings/structs.rs | 101 | #[serde(default, deny_unknown_fields)] | COMMENT |
| LOW | crates/utils/src/settings/structs.rs | 121 | /// Name of the site, can be changed later. Maximum 20 characters. Only used if `admin_username` | COMMENT |
| LOW | crates/utils/src/settings/structs.rs | 141 | pub struct PrometheusConfig { | COMMENT |
| LOW | crates/utils/src/settings/structs.rs | 161 | } | COMMENT |
| LOW | crates/utils/src/utils/slurs.rs | 81 | } | COMMENT |
| LOW | crates/db_schema_file/src/enums.rs | 81 | )] | COMMENT |
| LOW | crates/db_schema_file/src/enums.rs | 101 | #[cfg_attr( | COMMENT |
| LOW | crates/db_schema_file/src/enums.rs | 121 | #[cfg_attr(feature = "full", derive(DbEnum))] | COMMENT |
| LOW | crates/db_schema_file/src/enums.rs | 161 | ExistingTypePath = "crate::schema::sql_types::VoteSettingsEnum" | COMMENT |
| LOW | crates/db_schema_file/src/enums.rs | 181 | #[cfg_attr( | COMMENT |
| LOW | crates/db_schema_file/src/newtypes.rs | 61 | } | COMMENT |
| LOW | crates/db_schema_file/src/newtypes.rs | 81 | /// The community report id. | COMMENT |
| 14 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Cargo.toml | 18 | # out temporarily, but make sure to leave this in the main branch. | COMMENT |
| LOW | docker/docker-compose.yml | 42 | # use "image" to pull down an already compiled lemmy-ui. make sure to comment out "build". | COMMENT |
| LOW | docker/docker-compose.yml | 45 | # use "build" to build your local lemmy ui image for development. make sure to comment out "image". | COMMENT |
| LOW | scripts/install.sh | 5 | # Don't forget to change this string to your actual database parameters | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | api_tests/src/shared.ts | 772 | export async function saveUserSettingsFederated(api: LemmyHttp) { | CODE |
| LOW | api_tests/src/shared.ts | 933 | export function userBlockInstanceCommunities( | CODE |
| LOW | api_tests/src/shared.ts | 957 | export function listCommunityPendingFollows(api: LemmyHttp) { | CODE |
| LOW | api_tests/src/shared.ts | 966 | export function approveCommunityPendingFollow( | CODE |
| LOW | api_tests/src/shared.ts | 1113 | export function assertCommunityFederation( | CODE |
| LOW | api_tests/src/image.spec.ts | 45 | async function expectProxiedImageContentDisposition( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/release.bash | 5 | # Creating the new tag | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/utils/src/settings/structs.rs | 127 | #[doku(example = "user@example.com")] | COMMENT |