comment engine
This report summarizes scanner evidence for umputun/remark42, a Go project with 5,641 GitHub stars. SynthScan examined 93,029 lines of code across 586 source files, recording 91 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.1 (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? 37 finding(s).
Are imports declared and package/API names verified? 54 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 91 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 91 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 | frontend/apps/remark42/app/embed.test.ts | 31 | const root = await mount('<iframe title="placeholder"></iframe>'); | CODE |
| LOW⚡ | …rk42/app/components/comment-form/comment-form.spec.tsx | 117 | describe('placeholder', () => { | CODE |
| LOW⚡ | …rk42/app/components/comment-form/comment-form.spec.tsx | 120 | expect(screen.getByTestId('textarea_1')).toHaveAttribute('placeholder', 'Your comment here'); | CODE |
| LOW⚡ | …rk42/app/components/comment-form/comment-form.spec.tsx | 125 | expect(screen.getByTestId('textarea_1')).toHaveAttribute('placeholder', 'Your reply here'); | CODE |
| LOW⚡ | …rk42/app/components/comment-form/comment-form.spec.tsx | 130 | expect(screen.getByTestId('textarea_1')).toHaveAttribute('placeholder', 'Your comment here'); | CODE |
| LOW⚡ | …rk42/app/components/comment-form/comment-form.spec.tsx | 135 | expect(screen.getByTestId('textarea_1')).toHaveAttribute('placeholder', 'Your reply here'); | CODE |
| LOW⚡ | …rk42/app/components/comment-form/comment-form.spec.tsx | 142 | ${'0'} | ${'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean ma | CODE |
| LOW⚡ | …rk42/app/components/comment-form/comment-form.spec.tsx | 142 | ${'0'} | ${'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean ma | CODE |
| LOW | backend/app/cmd/server_test.go | 601 | _, err := app.restSrv.DataService.SetUserEmail("remark", "with_email", "user@example.com") | CODE |
| LOW | backend/app/cmd/server_test.go | 604 | assert.Equal(t, "user@example.com", res.User.Email) | CODE |
| LOW | backend/app/cmd/server_test.go | 1380 | cmd.Notify.Email.From = "from@example.org" | CODE |
| LOW | backend/app/cmd/server_test.go | 1535 | tkn, err = e.TokenGenFn("email_user1", "user1@example.org", "remark") | CODE |
| LOW | backend/app/notify/notify_test.go | 89 | Email: "test@example.org", | CODE |
| LOW | backend/app/notify/notify_test.go | 109 | assert.Equal(t, "test@example.org", verifyDest[0].Email) | CODE |
| LOW⚡ | backend/app/notify/email_test.go | 107 | assert.EqualError(t, e.SendVerification(context.Background(), VerificationRequest{Email: "bad@example.org", Token: "som | CODE |
| LOW⚡ | backend/app/notify/email_test.go | 112 | assert.EqualError(t, e.Send(context.Background(), Request{Comment: store.Comment{ID: "999"}, parent: store.Comment{User | CODE |
| LOW⚡ | backend/app/notify/email_test.go | 120 | assert.EqualError(t, e.Send(ctx, Request{Comment: store.Comment{ID: "999"}, parent: store.Comment{User: store.User{ID: | CODE |
| LOW⚡ | backend/app/notify/email_test.go | 123 | assert.EqualError(t, e.Send(context.Background(), Request{Comment: store.Comment{ID: "999"}, parent: store.Comment{User | CODE |
| LOW⚡ | backend/app/notify/email_test.go | 129 | Request{Comment: store.Comment{ID: "999"}, parent: store.Comment{User: store.User{ID: "error"}}, Emails: []string{"bad | CODE |
| LOW | backend/app/notify/email_test.go | 149 | From: "from@example.org", | CODE |
| LOW | backend/app/notify/email_test.go | 160 | Emails: []string{"test@example.org"}, | CODE |
| LOW | backend/app/notify/email_test.go | 179 | email.AdminEmails = []string{"admin@example.org"} | CODE |
| LOW | backend/app/notify/email_test.go | 182 | Emails: []string{"test@example.org"}, | CODE |
| LOW | backend/app/notify/email_test.go | 204 | From: "from@example.org", | CODE |
| LOW | backend/app/notify/email_test.go | 214 | Emails: []string{"test@example.org"}, | CODE |
| LOW | backend/app/notify/email_test.go | 245 | From: "from@example.org", | CODE |
| LOW | backend/app/notify/email_test.go | 261 | req.Email = "test@example.org" | CODE |
| LOW⚡ | backend/app/notify/telegram_test.go | 58 | Text: "<b>Lorem ipsum <i>dolor sit amet</i>, consectetur adipiscing <code>elit, sed do eiusmod tempor incididunt</code | CODE |
| LOW⚡ | backend/app/notify/telegram_test.go | 58 | Text: "<b>Lorem ipsum <i>dolor sit amet</i>, consectetur adipiscing <code>elit, sed do eiusmod tempor incididunt</code | CODE |
| LOW⚡ | backend/app/notify/telegram_test.go | 63 | <b>Lorem ipsum <i>dolor sit amet</i>, consectetur adipiscing <code>elit, sed do eiusmod tempor incididunt</code> ut...</ | CODE |
| LOW⚡ | backend/app/notify/telegram_test.go | 63 | <b>Lorem ipsum <i>dolor sit amet</i>, consectetur adipiscing <code>elit, sed do eiusmod tempor incididunt</code> ut...</ | CODE |
| LOW | backend/app/rest/api/middleware_test.go | 186 | resp, err = http.Get(ts.URL + "?fake_id=anonymous_user123&fake_name=test") | CODE |
| LOW | backend/app/rest/api/middleware_test.go | 191 | resp, err = http.Get(ts.URL + "?fake_id=real_user123&fake_name=test") | CODE |
| LOW⚡ | backend/app/rest/api/admin_test.go | 736 | email, err := srv.DataService.SetUserEmail("remark42", "user1", "test@example.org") | CODE |
| LOW⚡ | backend/app/rest/api/admin_test.go | 738 | assert.Equal(t, "test@example.org", email, "new email for user1") | CODE |
| LOW⚡ | backend/app/rest/api/admin_test.go | 742 | assert.Equal(t, "test@example.org", email, "new email for user1 is readable") | CODE |
| LOW | backend/app/rest/api/rest_test.go | 727 | // fake auth middleware make user authenticated and uses query's fake_id for ID and fake_name for Name | COMMENT |
| LOW | backend/app/rest/api/rest_test.go | 733 | Name: r.URL.Query().Get("fake_name"), | CODE |
| LOW⚡ | backend/app/store/service/service_test.go | 994 | req := engine.UserDetailRequest{Locator: store.Locator{SiteID: "radio-t"}, UserID: "user2", Detail: engine.UserEmail, U | CODE |
| LOW⚡ | backend/app/store/service/service_test.go | 997 | assert.Equal(t, []engine.UserDetailEntry{{UserID: "user2", Email: "test@example.org"}}, value) | CODE |
| LOW⚡ | backend/app/store/service/service_test.go | 1001 | assert.Equal(t, []engine.UserDetailEntry{{UserID: "user3", Email: "test@example.org"}}, value) | CODE |
| LOW | backend/app/store/service/service_test.go | 1013 | assert.Equal(t, "test@example.org", um[1].Details.Email) | CODE |
| LOW | backend/app/store/service/service_test.go | 1015 | assert.Equal(t, "test@example.org", um[2].Details.Email) | CODE |
| LOW | backend/app/store/service/service_test.go | 1033 | um1 := UserMetaData{ID: "user1", Verified: true, Details: engine.UserDetailEntry{Email: "test@example.org"}} | CODE |
| LOW | backend/app/store/service/service_test.go | 1047 | assert.Equal(t, []engine.UserDetailEntry{{UserID: "user1", Email: "test@example.org"}}, val) | CODE |
| LOW | backend/app/store/engine/bolt_test.go | 858 | _, err := b.UserDetail(UserDetailRequest{Locator: loc, UserID: userID, Detail: UserEmail, Update: "user@example.com"}) | CODE |
| LOW | backend/app/store/engine/bolt_test.go | 886 | _, err := b.UserDetail(UserDetailRequest{Locator: loc, UserID: userID, Detail: UserEmail, Update: "user@example.com"}) | CODE |
| LOW | backend/_example/memory_store/main.go | 59 | Email: "admin@example.com", | CODE |
| LOW | backend/_example/memory_store/server/admin_test.go | 57 | assert.Equal(t, "admin@example.com", email) | CODE |
| LOW | backend/_example/memory_store/server/rpc_test.go | 58 | Email: "admin@example.com", | CODE |
| LOW | site/content/docs/configuration/parameters/index.md | 119 | | auth.email.from | AUTH_EMAIL_FROM | | email from (e.g. `john.doe | CODE |
| LOW | site/content/docs/configuration/parameters/index.md | 132 | | notify.email.from_address | NOTIFY_EMAIL_FROM | | from email address (e.g. ` | CODE |
| LOW | e2e/widgets_test.go | 292 | got, perr := textarea.GetAttribute("placeholder") | CODE |
| LOW | e2e/config_test.go | 165 | placeholder, err := frame.Locator(commentFormSel).First().Locator("textarea").GetAttribute("placeholder") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compose-e2e-test.yml | 41 | - AUTH_ANON=true | COMMENT |
| LOW | frontend/apps/remark42/app/typings/global.d.ts | 1 | import 'jest-fetch-mock'; | COMMENT |
| LOW | frontend/apps/remark42/app/typings/global.d.ts | 21 | // Optional, 'dark' or 'light', 'light' by default. Changes UI theme. | COMMENT |
| LOW | backend/app/rest/image_headers.go | 41 | // - Content-Security-Policy: strict, with sandbox — blocks inline scripts and event handlers | COMMENT |
| LOW | backend/app/rest/proxy/image_test.go | 441 | b, err := io.ReadAll(resp.Body) | COMMENT |
| LOW | backend/app/rest/api/middleware.go | 241 | // rest.StrictImageCSP value at the handler level and additionally set Content-Disposition: | COMMENT |
| LOW | backend/app/store/admin/admin_mock.go | 1 | // Code generated by moq; DO NOT EDIT. | COMMENT |
| LOW | backend/app/store/admin/admin_mock.go | 21 | // panic("mock out the Admins method") | COMMENT |
| LOW | backend/app/store/image/image_mock.go | 21 | // mockedStore := &StoreMock{ | COMMENT |
| LOW | backend/app/store/image/image_mock.go | 41 | // panic("mock out the Save method") | COMMENT |
| LOW | backend/app/store/engine/engine_mock.go | 21 | // mockedInterface := &InterfaceMock{ | COMMENT |
| LOW | backend/app/store/engine/engine_mock.go | 41 | // panic("mock out the Get method") | COMMENT |
| LOW | e2e/crossorigin_test.go | 21 | // addresses remark42 by remark_config.host. What has to hold is that the frame is revealed at all, | COMMENT |
| LOW | e2e/profile_test.go | 21 | // about it beyond "it opens" is covered by jest alone: the comment list, the pagination and the | COMMENT |
| LOW | e2e/profile_test.go | 61 | // exactly the page size, not at least it: an API that ignored limit and returned all eleven | COMMENT |
| LOW | e2e/subscribe_test.go | 21 | // It is also the only place a token out of a real message is exchanged for state the server | COMMENT |
| LOW | e2e/subscribe_test.go | 101 | } | COMMENT |
| LOW | e2e/stamp.sh | 1 | #!/bin/sh | COMMENT |
| LOW | e2e/e2e_test.go | 1 | //go:build e2e | COMMENT |
| LOW | e2e/e2e_test.go | 141 | return regexp.MustCompile(`^https?://(?:` + strings.Join(quoted, "|") + `)(?:/|$)`) | COMMENT |
| LOW | e2e/e2e_test.go | 561 | // url carrying the separator its storage used to join on is the case that broke it. only | COMMENT |
| LOW | e2e/geometry_test.go | 21 | const ( | COMMENT |
| LOW | e2e/https_test.go | 21 | // | COMMENT |
| LOW | e2e/https_test.go | 181 | } | COMMENT |
| LOW | e2e/https_test.go | 281 | // settle. Playwright's Context().Cookies() is a browser-session Storage.getCookies that never | COMMENT |
| LOW | e2e/telegram_test.go | 21 | COMMENT | |
| LOW | e2e/thread_test.go | 181 | // TestThread_WidgetDocumentServesItsOwnChunks covers the widget document loaded directly on the | COMMENT |
| LOW | e2e/jscoverage_test.go | 41 | // It is called before every reload and every navigation as well as at cleanup, because | COMMENT |
| LOW | e2e/coverage.sh | 1 | #!/bin/sh | COMMENT |
| LOW | e2e/tls/generate.sh | 1 | #!/bin/sh | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | compose-e2e-test.yml | 3 | # TRUSTED_PROXY stays unset on every instance. The loopback-only harness gives each browser context | COMMENT |
| MEDIUM | backend/app/cmd/backup.go | 15 | // ExportPath used as a separate element to leverage BACKUP_PATH. If ExportFile has a path (i.e. with /) BACKUP_PATH ign | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/apps/remark42/app/utils/errorUtils.ts | 118 | export function extractErrorMessageFromResponse(response: FetcherError, intl: IntlShape): string { | CODE |
| LOW | frontend/apps/remark42/app/utils/email.ts | 12 | export function getDeleteInformationMessage( | CODE |
| LOW | frontend/apps/remark42/app/components/auth/auth.api.ts | 73 | async function handleWindowVisibilityChange() { | CODE |
| LOW | …ntend/apps/remark42/app/components/profile/profile.tsx | 93 | async function handleClickRequestRemoveData() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ntend/apps/remark42/app/components/profile/profile.tsx | 231 | ) : // TODO: implement hiding user comments | CODE |