Repository Analysis

LemmyNet/lemmy

🐀 A decentralised discussion platform for communities.

0.9 Likely human-written View on GitHub
0.9
Adjusted Score
0.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
14,415
Stars
Rust
Language
97,091
Lines of Code
758
Files
82
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 1LOW 81

Pattern Findings

82 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block71 hits · 71 pts
SeverityFileLineSnippet
LOWcrates/db_schema/src/lib.rs61 Old,
LOWcrates/db_schema/src/lib.rs141#[cfg_attr(feature = "ts-rs", ts(export))]
LOWcrates/db_schema/src/newtypes.rs41 Comment(CommentId),
LOWcrates/db_schema/src/newtypes.rs81/// The comment report id.
LOWcrates/db_schema/src/newtypes.rs101#[cfg_attr(feature = "ts-rs", ts(optional_fields, export))]
LOWcrates/db_schema/src/newtypes.rs121)]
LOWcrates/db_schema/src/newtypes.rs141#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Serialize, Deserialize, Default)]
LOWcrates/db_schema/src/newtypes.rs161
LOWcrates/db_schema/src/newtypes.rs181pub struct PersonSavedCombinedId(pub i32);
LOWcrates/db_schema/src/newtypes.rs201#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
LOWcrates/db_schema/src/source/local_site_rate_limit.rs1use crate::newtypes::LocalSiteId;
LOWcrates/db_schema/src/source/local_site_rate_limit.rs41#[derive(Clone, derive_new::new)]
LOWcrates/db_schema/src/source/oauth_provider.rs21 /// The issuer url of the OAUTH provider.
LOWcrates/db_schema/src/source/oauth_provider.rs61#[skip_serializing_none]
LOWcrates/db_schema/src/source/comment.rs121
LOWcrates/db_schema/src/source/person.rs121#[skip_serializing_none]
LOWcrates/db_schema/src/source/post.rs181#[cfg_attr(
LOWcrates/db_schema/src/source/instance.rs61#[cfg_attr(feature = "full", diesel(check_for_backend(diesel::pg::Pg)))]
LOWcrates/db_schema/src/source/local_site.rs21#[derive(PartialEq, Eq, Debug, Clone, Serialize, Deserialize, Default)]
LOWcrates/db_schema/src/source/images.rs41 pub thumbnail_for_post_id: Option<Option<PostId>>,
LOWcrates/db_schema/src/source/login_token.rs1use crate::newtypes::LocalUserId;
LOWcrates/db_schema/src/source/community.rs181 derive(Identifiable, Queryable, Selectable, Associations, CursorKeysModule)
LOWcrates/db_schema/src/source/community_tag.rs1use crate::newtypes::{CommunityId, CommunityTagId, PostId};
LOWcrates/db_schema/src/source/community_tag.rs61/// We wrap this in a struct so we can implement FromSqlRow<Json> for it
LOWcrates/db_schema/src/impls/community.rs201 type_: &Option<ListingType>,
LOWcrates/db_views/post/src/api.rs101#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)]
LOWcrates/db_views/post/src/api.rs161pub struct GetSiteMetadataResponse {
LOWcrates/db_views/post/src/api.rs241#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, Hash)]
LOWcrates/db_views/post/src/db_perf/series.rs21/// For example, if there's a `numbers` table with a `number` column, this inserts all numbers from
LOWcrates/db_views/modlog/src/lib.rs21#[skip_serializing_none]
LOWcrates/db_views/person/src/api.rs21#[cfg_attr(feature = "ts-rs", ts(optional_fields, export))]
LOWcrates/db_views/person/src/api.rs61
LOWcrates/db_views/comment/src/api.rs61
LOWcrates/db_views/report_combined/src/api.rs21#[derive(Debug, Serialize, Deserialize, Clone, Default, PartialEq, Eq, Hash)]
LOWcrates/db_views/registration_applications/src/api.rs21#[skip_serializing_none]
LOWcrates/db_views/site/src/lib.rs21pub mod impls;
LOWcrates/db_views/site/src/lib.rs41#[derive(Debug, Serialize, Deserialize, Clone)]
LOWcrates/db_views/site/src/api.rs281 /// What kind of post upvotes your site allows.
LOWcrates/db_views/site/src/api.rs361#[derive(Debug, Serialize, Deserialize, Clone)]
LOWcrates/db_views/site/src/api.rs421
LOWcrates/db_views/site/src/api.rs501 pub email: SensitiveString,
LOWcrates/db_views/site/src/api.rs601#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
LOWcrates/db_views/site/src/api.rs681#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
LOWcrates/db_views/site/src/api.rs741 Comment(Comment),
LOWcrates/db_views/community/src/lib.rs21#[cfg(feature = "full")]
LOWcrates/db_views/community/src/api.rs81
LOWcrates/server/src/lib.rs61static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
LOWcrates/server/src/lib.rs81 /// If you are running multiple Lemmy server processes, you probably want to disable scheduled
LOWcrates/server/src/lib.rs101 ///
LOWcrates/utils/src/settings/structs.rs21 #[doku(example = "Some(Default::default())")]
LOWcrates/utils/src/settings/structs.rs81#[serde(default, deny_unknown_fields)]
LOWcrates/utils/src/settings/structs.rs101#[serde(default, deny_unknown_fields)]
LOWcrates/utils/src/settings/structs.rs121 /// Name of the site, can be changed later. Maximum 20 characters. Only used if `admin_username`
LOWcrates/utils/src/settings/structs.rs141pub struct PrometheusConfig {
LOWcrates/utils/src/settings/structs.rs161}
LOWcrates/utils/src/utils/slurs.rs81 }
LOWcrates/db_schema_file/src/enums.rs81)]
LOWcrates/db_schema_file/src/enums.rs101#[cfg_attr(
LOWcrates/db_schema_file/src/enums.rs121#[cfg_attr(feature = "full", derive(DbEnum))]
LOWcrates/db_schema_file/src/enums.rs161 ExistingTypePath = "crate::schema::sql_types::FederationModeEnum"
11 more matches not shown…
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippet
LOWCargo.toml18# out temporarily, but make sure to leave this in the main branch.
LOWdocker/docker-compose.yml42 # use "image" to pull down an already compiled lemmy-ui. make sure to comment out "build".
LOWdocker/docker-compose.yml45 # use "build" to build your local lemmy ui image for development. make sure to comment out "image".
LOWscripts/install.sh5# Don't forget to change this string to your actual database parameters
Hyper-Verbose Identifiers5 hits · 5 pts
SeverityFileLineSnippet
LOWapi_tests/src/shared.ts769export async function saveUserSettingsFederated(api: LemmyHttp) {
LOWapi_tests/src/shared.ts918export function userBlockInstanceCommunities(
LOWapi_tests/src/shared.ts942export function listCommunityPendingFollows(api: LemmyHttp) {
LOWapi_tests/src/shared.ts951export function approveCommunityPendingFollow(
LOWapi_tests/src/shared.ts1098export function assertCommunityFederation(
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMscripts/release.bash5# Creating the new tag
Fake / Example Data1 hit · 2 pts
SeverityFileLineSnippet
LOWcrates/utils/src/settings/structs.rs127 #[doku(example = "user@example.com")]