HedgeDoc - Ideas grow better together
This report summarizes scanner evidence for hedgedoc/hedgedoc, a TypeScript project with 7,501 GitHub stars. SynthScan examined 124,093 lines of code across 1682 source files, recording 77 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.0 (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? 42 finding(s).
Are imports declared and package/API names verified? 35 finding(s).
Are wrappers, guards, and repeated structures necessary? 31 finding(s).
Which changes need focused human review? 77 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 77 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 |
|---|---|---|---|---|
| HIGH | …nents/editor-page/hooks/use-print-keyboard-shortcut.ts | 30 | print() | CODE |
| HIGH | frontend/src/hooks/common/use-may-edit.ts | 13 | * @return True, if the current user is allowed to write. | COMMENT |
| HIGH | frontend/src/hooks/common/use-is-logged-in.ts | 11 | * @return True, if a user is logged in. False otherwise. | COMMENT |
| HIGH | frontend/src/hooks/common/use-is-owner.ts | 13 | * @return True, if the current user is owner. | COMMENT |
| HIGH | commons/src/permissions/permissions.ts | 13 | * @return True if the user is the owner of the note | COMMENT |
| HIGH | commons/src/permissions/permissions.ts | 27 | * @return True if the user has the permission to edit the note | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/locales/en.json | 297 | "placeholder": "← Start by entering a title here\n===\nVisit {{host}}cheatsheet if you don't know what to do.\nLet t | CODE |
| LOW | frontend/locales/en.json | 551 | "placeholder": "Enter username of new note owner", | CODE |
| LOW | frontend/src/pages/api/private/notes/features/index.ts | 13 | '---\ntitle: Features\ndescription: Many features, such wow!\nrobots: noindex\ntags:\n - hedgedoc\n - demo\n - | CODE |
| LOW | frontend/src/pages/api/private/notes/features/index.ts | 13 | '---\ntitle: Features\ndescription: Many features, such wow!\nrobots: noindex\ntags:\n - hedgedoc\n - demo\n - | CODE |
| LOW⚡ | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 34 | -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore mag | CODE |
| LOW⚡ | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 34 | -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore mag | CODE |
| LOW⚡ | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 35 | +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore mag | CODE |
| LOW⚡ | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 35 | +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore mag | CODE |
| LOW | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 76 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magn | CODE |
| LOW | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 76 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magn | CODE |
| LOW⚡ | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 94 | > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ma | CODE |
| LOW⚡ | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 94 | > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ma | CODE |
| LOW⚡ | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 95 | > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ma | CODE |
| LOW⚡ | …ures/revisions/019a5647-fc18-7e2d-9d8d-867be8a5ef28.ts | 95 | > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ma | CODE |
| LOW | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 34 | +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore mag | CODE |
| LOW | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 34 | +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore mag | CODE |
| LOW⚡ | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 52 | +> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore m | CODE |
| LOW⚡ | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 52 | +> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore m | CODE |
| LOW⚡ | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 53 | +> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore m | CODE |
| LOW⚡ | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 53 | +> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore m | CODE |
| LOW | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 128 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magn | CODE |
| LOW | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 128 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magn | CODE |
| LOW⚡ | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 146 | > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ma | CODE |
| LOW⚡ | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 146 | > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ma | CODE |
| LOW⚡ | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 147 | > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ma | CODE |
| LOW⚡ | …ures/revisions/019a5648-4986-7213-9067-a4a6859171c5.ts | 147 | > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ma | CODE |
| LOW | backend/src/database/seeds/notes/guest_note.md | 9 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW | backend/src/database/seeds/notes/guest_note.md | 9 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW | backend/src/auth/oidc/oidc-service.spec.ts | 118 | oidcService.processBackchannelLogout('unknown-oidc', 'fake-token'), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | commons/src/utils/wait-for-other-promises-to-finish.ts | 15 | export function waitForOtherPromisesToFinish(): Promise<void> { | CODE |
| LOW | markdown-it-plugins/src/image-size/parse-image-size.ts | 24 | function findNextNotNumberCharacter(startPosition: number, maximalPosition: number, content: string): number { | CODE |
| LOW | backend/test/utils.ts | 45 | export async function expectPublicAPIPermissions( | CODE |
| LOW | backend/src/database/utils/healthcheck.ts | 14 | export async function checkDatabaseHealthWithKnex(knex: Knex): Promise<boolean> { | CODE |
| LOW | backend/src/database/utils/healthcheck.ts | 29 | export async function checkDatabaseHealthWithRawConnection(connection: any): Promise<boolean> { | CODE |
| LOW | backend/src/config/zod-error-message.ts | 27 | export function extractDescriptionFromZodIssue( | CODE |
| LOW | …ckend/src/config/mock/external-services.config.mock.ts | 11 | export function createDefaultMockExternalServicesConfig(): ExternalServicesConfig { | CODE |
| LOW | …ckend/src/config/mock/external-services.config.mock.ts | 18 | export function registerExternalServiceConfig( | CODE |
| LOW | backend/src/config/mock/app.config.mock.ts | 12 | export function createDefaultMockAppConfig(): AppConfig { | CODE |
| LOW | backend/src/config/mock/media.config.mock.ts | 12 | export function createDefaultMockMediaConfig(): MediaConfig { | CODE |
| LOW | backend/src/config/mock/database.config.mock.ts | 12 | export function createDefaultMockDatabaseConfig(): DatabaseConfig { | CODE |
| LOW | backend/src/config/mock/note.config.mock.ts | 12 | export function createDefaultMockNoteConfig(): NoteConfig { | CODE |
| LOW | backend/src/config/mock/customization.config.mock.ts | 11 | export function createDefaultMockCustomizationConfig(): CustomizationConfig { | CODE |
| LOW | backend/src/config/mock/customization.config.mock.ts | 25 | export function registerCustomizationConfig( | CODE |
| LOW | backend/src/config/mock/security.config.mock.ts | 11 | export function createDefaultMockSecurityConfig(): SecurityConfig { | CODE |
| LOW | backend/src/config/mock/auth.config.mock.ts | 11 | export function createDefaultMockAuthConfig(): AuthConfig { | CODE |
| LOW | backend/src/security/rate-limiting.ts | 49 | function getRateLimitConfigByRequest( | CODE |
| LOW | backend/src/security/rate-limiting.ts | 88 | export function getTimeWindowByRequestWithSecurityConfig( | CODE |
| LOW | backend/src/security/rate-limiting.ts | 103 | export function getMaxLimitByRequestWithSecurityConfig( | CODE |
| LOW | backend/src/utils/server-version.ts | 20 | export async function getServerVersionFromPackageJson(): Promise<ServerVersionDto> { | CODE |
| LOW | backend/src/utils/server-version.ts | 33 | async function parseVersionFromPackageJson(): Promise<ServerVersionDto> { | CODE |
| LOW | …sions/utils/convert-editability-to-permission-level.ts | 14 | export function convertEditabilityToPermissionLevel(canEdit: boolean): PermissionLevel { | CODE |
| LOW | …me/websocket/utils/extract-note-id-from-request-url.ts | 15 | export function extractNoteAliasFromRequestUrl(request: IncomingMessage): string { | CODE |
| LOW | …isions/utils/extract-revision-metadata-from-content.ts | 36 | export function extractRevisionMetadataFromContent(content: string): FrontmatterExtractionResult { | CODE |
| LOW | …isions/utils/extract-revision-metadata-from-content.ts | 60 | function generateContentWithoutFrontmatter( | CODE |
| LOW | …isions/utils/extract-revision-metadata-from-content.ts | 100 | function extractFirstHeadingFromContent(content: string): string | undefined { | CODE |
| LOW | html-to-react/README.md | 124 | ### `function convertNodeToReactElement(node, index, transform)` | COMMENT |
| LOW | html-to-react/src/convertNodeToReactElement.ts | 23 | export function convertNodeToReactElement( | CODE |
| LOW | html-to-react/src/utils/isValidTagOrAttributeName.ts | 10 | export function isValidTagOrAttributeName(tagName: string): boolean { | CODE |
| LOW | html-to-react/src/utils/generatePropsFromAttributes.ts | 16 | export function generatePropsFromAttributes( | CODE |
| LOW | …src/utils/mapHtmlAttributesToReactElementAttributes.ts | 42 | export function mapHtmlAttributesToReactElementAttributes( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | frontend/cypress/support/e2e.ts | 1 | /* | COMMENT |
| LOW | frontend/cypress/e2e/taskLists.spec.ts | 41 | // cy.getMarkdownBody() | COMMENT |
| LOW | frontend/cypress/e2e/taskLists.spec.ts | 61 | // cy.getMarkdownBody() | COMMENT |
| LOW | .github/workflows/e2e-tests.yml | 121 | # if: "(github.event_name == 'pull_request_target') == github.event.pull_request.head.repo.fork" | COMMENT |
| LOW | .github/workflows/e2e-tests.yml | 141 | # TURBO_API: ${{ vars.TURBO_API }} | COMMENT |
| LOW | .github/workflows/e2e-tests.yml | 161 | # matrix: | COMMENT |
| LOW | .github/workflows/e2e-tests.yml | 181 | # uses: actions/download-artifact@v4 | COMMENT |
| LOW | .github/workflows/e2e-tests.yml | 201 | # | COMMENT |
| LOW | .github/workflows/e2e-tests.yml | 221 | # if: always() | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/test-and-build.yml | 28 | node: [ '24' ] # Are you changing this? Don't forget to update the min. and recommended node version in docs/con | CODE |