The web-based visual programming editor.
This report summarizes scanner evidence for RaspberryPiFoundation/blockly, a TypeScript project with 13,600 GitHub stars. SynthScan examined 352,600 lines of code across 1604 source files, recording 192 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 0.8 (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? 166 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 112 finding(s).
Which changes need focused human review? 192 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 192 distinct pattern matches across 15 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 | …ugins/field-multilineinput/src/field_multilineinput.ts | 683 | export function registerFieldMultilineInput() { | CODE |
| LOW | …kages/plugins/block-shareable-procedures/test/index.js | 115 | function createSerializationListener(workspace, textAreaId) { | CODE |
| LOW | …ck-shareable-procedures/test/procedure_test_helpers.js | 23 | export function createGenUidStubWithReturns(returnIds) { | CODE |
| LOW | …ck-shareable-procedures/test/procedure_test_helpers.js | 57 | export function assertCallBlockArgsStructure(callBlock, args) { | CODE |
| LOW | …ckages/plugins/block-shareable-procedures/src/index.ts | 47 | export function unregisterProcedureBlocks() { | CODE |
| LOW | …ckages/plugins/block-shareable-procedures/src/index.ts | 58 | export function registerProcedureSerializer() { | CODE |
| LOW | …lugins/suggested-blocks/test/suggested_blocks.mocha.js | 135 | function assertSuggestedListEquals(blockList, expectedBlockIds) { | CODE |
| LOW | …block-plus-minus/test/procedures_test_helpers.mocha.js | 182 | function assertProcBlocksStructure( | CODE |
| LOW | …kages/plugins/block-plus-minus/test/text_join.mocha.js | 33 | function assertTextJoinBlockStructure(block, inputCount) { | CODE |
| LOW | …ges/plugins/workspace-backpack/src/backpack_helpers.ts | 20 | function registerRemoveFromBackpack() { | CODE |
| LOW | …gins/block-dynamic-connection/test/dynamic_if.mocha.js | 40 | function connectBooleanBlockToConnection(workspace, connection) { | CODE |
| LOW | …gins/block-dynamic-connection/test/dynamic_if.mocha.js | 52 | function connectStatementBlockToConnection(workspace, connection) { | CODE |
| LOW | …rs/test/field_colour_hsv_sliders_test_helpers.mocha.js | 17 | function assertColourHsvSlidersField( | CODE |
| LOW | …rs/test/field_colour_hsv_sliders_test_helpers.mocha.js | 29 | function assertColourHsvSlidersFieldDefault(colourHsvSlidersField) { | CODE |
| LOW | …s/workspace-search/test/workspace_search_test.mocha.js | 68 | function assertNoExtraCurrentStyling(blocks, expectedCurrent = undefined) { | CODE |
| LOW | …s/shadow-block-converter/src/shadow_block_converter.ts | 319 | export function shadowBlockConversionChangeListener( | CODE |
| LOW | packages/plugins/dev-tools/src/screenshot.js | 124 | export function downloadWorkspaceScreenshot(workspace) { | CODE |
| LOW | packages/plugins/dev-tools/src/debug.js | 21 | export function registerDebugRendererFromName(name) { | CODE |
| LOW | packages/plugins/dev-tools/src/playground/options.js | 442 | function openFolderIfOptionSelected(folder, guiState, mainObj, options) { | CODE |
| LOW | packages/plugins/dev-tools/src/playground/options.js | 608 | function populateToolboxSidesOption( | CODE |
| LOW | packages/plugins/dev-tools/src/playground/options.js | 924 | function populateDebugOptionsFolder( | CODE |
| LOW | packages/plugins/continuous-toolbox/src/index.ts | 33 | export function registerContinuousToolbox() { | CODE |
| LOW | packages/blockly/core/contextmenu_items.ts | 441 | export function registerCollapseExpandBlock() { | CODE |
| LOW | packages/blockly/core/hints.ts | 30 | export function showUnconstrainedMoveHint( | CODE |
| LOW | packages/blockly/core/hints.ts | 53 | export function showConstrainedMovementHint(workspace: WorkspaceSvg) { | CODE |
| LOW | packages/blockly/core/hints.ts | 111 | export function showWorkspaceNavigationHint(workspace: WorkspaceSvg) { | CODE |
| LOW | packages/blockly/core/hints.ts | 124 | export function showFlyoutLabelActionHint(workspace: WorkspaceSvg) { | CODE |
| LOW | packages/blockly/core/touch.ts | 123 | export function getTouchIdentifierFromEvent(e: PointerEvent): string { | CODE |
| LOW | packages/blockly/core/widgetdiv.ts | 406 | export function repositionForWindowResize(): void { | CODE |
| LOW | packages/blockly/core/common.ts | 285 | export function defineBlocksWithJsonArray(jsonArray: AnyDuringMigration[]) { | CODE |
| LOW | packages/blockly/core/common.ts | 292 | function defineBlocksWithJsonArrayInternal(jsonArray: AnyDuringMigration[]) { | CODE |
| LOW | packages/blockly/core/common.ts | 304 | export function createBlockDefinitionsFromJsonArray( | CODE |
| LOW | packages/blockly/core/extensions.ts | 292 | function checkHasMutatorProperties( | CODE |
| LOW | packages/blockly/core/extensions.ts | 429 | function checkDropdownOptionsInTable( | CODE |
| LOW | packages/blockly/core/extensions.ts | 463 | export function buildTooltipWithFieldText( | CODE |
| LOW | packages/blockly/core/connection.ts | 791 | function getConnectionForOrphanedOutput( | CODE |
| LOW | packages/blockly/core/xml.ts | 429 | export function clearWorkspaceAndLoadFromXml( | CODE |
| LOW | packages/blockly/core/shortcut_items.ts | 511 | export function registerMovementShortcuts() { | CODE |
| LOW | packages/blockly/core/shortcut_items.ts | 912 | export function registerReadExtendedInformation() { | CODE |
| LOW | packages/blockly/core/shortcut_items.ts | 1094 | export function registerHeadingNavigation() { | CODE |
| LOW | packages/blockly/core/shortcut_items.ts | 1321 | export function registerToggleScreenreaderMode() { | CODE |
| LOW | packages/blockly/core/shortcut_items.ts | 1919 | export function registerWorkspaceScrollShortcuts() { | CODE |
| LOW | packages/blockly/core/shortcut_items.ts | 1984 | export function registerKeyboardNavigationShortcuts() { | CODE |
| LOW | packages/blockly/core/shortcut_items.ts | 2002 | export function registerScreenReaderShortcuts() { | CODE |
| LOW | packages/blockly/core/shortcut_items.ts | 2014 | export function registerNavigationShortcuts() { | CODE |
| LOW | packages/blockly/core/dropdowndiv.ts | 614 | function getPositionTopOfPageMetrics( | CODE |
| LOW | packages/blockly/core/dropdowndiv.ts | 844 | export function repositionForWindowResize() { | CODE |
| LOW | packages/blockly/core/variables.ts | 140 | function generateVariableFieldJson(variable: IVariableModel<IVariableState>) { | CODE |
| LOW | packages/blockly/core/variables.ts | 287 | function generateUniqueNameInternal(workspace: Workspace): string { | CODE |
| LOW | packages/blockly/core/variables.ts | 306 | export function generateUniqueNameFromOptions( | CODE |
| LOW | packages/blockly/core/variables.ts | 358 | export function createVariableButtonHandler( | CODE |
| LOW | packages/blockly/core/variables.ts | 573 | export function nameUsedWithConflictingParam( | CODE |
| LOW | packages/blockly/core/variables.ts | 587 | function checkForConflictingParamWithProcedureModels( | CODE |
| LOW | packages/blockly/core/variables.ts | 613 | function checkForConflictingParamWithLegacyProcedures( | CODE |
| LOW | packages/blockly/core/variables.ts | 666 | export function getOrCreateVariablePackage( | CODE |
| LOW | packages/blockly/core/variables.ts | 666 | export function getOrCreateVariablePackage( | CODE |
| LOW | packages/blockly/core/block_aria_composer.ts | 499 | function findStartOfStatementSection( | CODE |
| LOW | packages/blockly/core/block_aria_composer.ts | 532 | function getParentToolboxCategoryLabel(block: BlockSvg) { | CODE |
| LOW | packages/blockly/core/block_aria_composer.ts | 607 | function computeMoveConnectionLabel( | CODE |
| LOW | packages/blockly/core/utils/dom.ts | 284 | export function getFastTextWidthWithSizeString( | CODE |
| 41 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …eld-dependent-dropdown/src/field_dependent_dropdown.ts | 201 | this.dependencyData.parentField = parentField; | COMMENT |
| LOW | …s/shadow-block-converter/src/shadow_block_converter.ts | 261 | // principle that ought to be possible since they don't need to coexist at the | COMMENT |
| LOW | packages/blockly/tsconfig.json | 21 | // This does not understand enums only used to define other enums, so we | COMMENT |
| LOW | packages/blockly/core/main.ts | 21 | // the generated msg/*.js files, which consists of lines like: | COMMENT |
| LOW | packages/blockly/core/tooltip.ts | 301 | // Compute the distance between the mouse position when the tooltip was | COMMENT |
| LOW | packages/blockly/core/utils/useragent.ts | 41 | } | COMMENT |
| LOW | packages/blockly/core/events/utils.ts | 281 | // Selection events are a bit quirky; they are fired by both the item | COMMENT |
| LOW | packages/blockly/msg/messages.js | 901 | Blockly.Msg.TEXT_ISEMPTY_TOOLTIP = 'Returns true if the provided text is empty.'; | COMMENT |
| LOW | packages/blockly/msg/messages.js | 921 | /// [[File:Blockly-find-text.png]]. | COMMENT |
| LOW | packages/blockly/msg/messages.js | 941 | // etc.) from a given piece of text. | COMMENT |
| LOW | packages/blockly/msg/messages.js | 961 | /// [[File:Blockly-text-get.png]] | COMMENT |
| LOW | packages/blockly/msg/messages.js | 981 | /// [[File:Blockly-text-get.png]] | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1001 | Blockly.Msg.TEXT_CHARAT_TOOLTIP = 'Returns the letter at the specified position.'; | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1021 | Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_START = 'get substring from letter #'; | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1041 | /// dropdown - Indicates that the following number specifies the position (relative to | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1061 | /// [[File:Blockly-get-substring.png]] | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1101 | /// dropdown - Removes spaces from the beginning and end of a piece of text. See | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1121 | /// {{Optional}} url - Information about displaying text on computers. | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1141 | /** @type {string} */ | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1281 | /// [[File:Blockly-list-find.png]] | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1301 | /// [https://github.com/RaspberryPiFoundation/blockly/wiki/Lists#removing-an-item | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1321 | Blockly.Msg.LISTS_GET_INDEX_FIRST = 'first'; | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1441 | /** @type {string} */ | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1461 | /// [[File:Blockly-get-sublist.png]] | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1581 | /// function definition]. | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1601 | /// definition block is disabled. See | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1661 | /// block text - This text appears on a block in a window that appears when the user clicks | COMMENT |
| LOW | packages/blockly/msg/messages.js | 1981 | /// This type of workspace appears when a user clicks on the gear icon of a block that has a mutator, and | COMMENT |
| LOW | packages/blockly/msg/messages.js | 2021 | /** @type {string} */ | COMMENT |
| LOW | packages/blockly/msg/messages.js | 2081 | /// Accessibility label for an empty connection that can hold a value block. | COMMENT |
| LOW | packages/blockly/msg/messages.js | 2241 | /** @type {string} */ | COMMENT |
| LOW | packages/blockly/msg/messages.js | 2261 | Blockly.Msg.ANNOUNCE_MOVE_INSIDE = 'Moving %1 inside %2.'; | COMMENT |
| LOW | packages/blockly/msg/messages.js | 2341 | Blockly.Msg.FIELD_LABEL_VARIABLE = 'Variable "%1"'; | COMMENT |
| LOW | packages/blockly/appengine/index.yaml | 1 | indexes: | COMMENT |
| LOW | packages/blockly/tests/scripts/check_metadata.sh | 1 | #!/bin/bash | COMMENT |
| LOW | packages/blockly/tests/scripts/check_metadata.sh | 21 | # Q4 2020 4.20201217.0 653624 | COMMENT |
| LOW | packages/blockly/tests/scripts/check_metadata.sh | 41 | # Size of blocks_compressed.js | COMMENT |
| LOW | packages/blockly/tests/scripts/check_metadata.sh | 61 | # Q4 2023 10.2.2 90269 | COMMENT |
| LOW | packages/blockly/tests/scripts/check_metadata.sh | 81 | # Q2 2022 8.0.0 173997 | COMMENT |
| LOW | packages/blockly/tests/scripts/check_metadata.sh | 101 | # Q4 2020 4.20201217.0 15224 | COMMENT |
| LOW | packages/blockly/scripts/i18n/dedup_json.py | 1 | #!/usr/bin/python3 | COMMENT |
| LOW | packages/blockly/scripts/i18n/common.py | 1 | #!/usr/bin/python3 | COMMENT |
| LOW | packages/blockly/scripts/i18n/js_to_json.py | 1 | #!/usr/bin/python3 | COMMENT |
| LOW | packages/blockly/scripts/i18n/tests.py | 1 | #!/usr/bin/python3 | COMMENT |
| LOW | packages/blockly/scripts/i18n/create_messages.py | 1 | #!/usr/bin/python3 | COMMENT |
| LOW | packages/blockly/scripts/themes/create_blockStyles.py | 1 | # !/usr/bin/env python | COMMENT |
| LOW | packages/blockly/scripts/themes/create_blockStyles.py | 21 | # | COMMENT |
| LOW | packages/blockly/generators/python/python_generator.ts | 101 | // https://github.com/microsoft/TypeScript/issues/55713 this (as | COMMENT |
| LOW | packages/blockly/generators/dart/dart_generator.ts | 61 | // TODO(#7085): deprecate these in due course. (Could initially | COMMENT |
| LOW | packages/blockly/generators/php/php_generator.ts | 101 | // see https://github.com/microsoft/TypeScript/issues/10530. | COMMENT |
| LOW | packages/blockly/generators/lua/lua_generator.ts | 61 | // deprecate.warn().) | COMMENT |
| LOW | …/blockly/generators/javascript/javascript_generator.ts | 101 | COMMENT | |
| LOW | …/demos/blockfactory/workspacefactory/wfactory_model.js | 21 | WorkspaceFactoryModel = function() { | COMMENT |
| LOW | .github/workflows/deploy-docusaurus.yml | 1 | # .github/workflows/deploy-docusaurus.yml | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | packages/blockly/generators/python/math.ts | 204 | return False | CODE |
| HIGH⚡ | packages/blockly/generators/python/math.ts | 206 | return True | CODE |
| HIGH⚡ | packages/blockly/generators/python/math.ts | 209 | return False | CODE |
| HIGH⚡ | packages/blockly/generators/python/math.ts | 213 | return False | CODE |
| HIGH⚡ | packages/blockly/generators/python/math.ts | 214 | return True | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/blockly/appengine/expiration.py | 0 | blockly demo: storage copyright 2012 google llc licensed under the apache license, version 2.0 (the "license"); you may | STRING |
| HIGH | packages/blockly/appengine/main.py | 0 | blockly demo: storage copyright 2012 google llc licensed under the apache license, version 2.0 (the "license"); you may | STRING |
| HIGH | packages/blockly/appengine/add_timestamps.py | 0 | blockly demo: storage copyright 2012 google llc licensed under the apache license, version 2.0 (the "license"); you may | STRING |
| HIGH | packages/blockly/appengine/storage.py | 0 | blockly demo: storage copyright 2012 google llc licensed under the apache license, version 2.0 (the "license"); you may | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/blockly/scripts/i18n/common.py | 39 | Read a JSON file as UTF-8 into a dictionary, discarding @metadata. Args: filename: The filename, which must end " | STRING |
| HIGH | packages/blockly/scripts/i18n/common.py | 66 | Creates a qqq.json file with message documentation for translatewiki.net. The file consists of key-value pairs, whe | STRING |
| HIGH | packages/blockly/scripts/i18n/common.py | 119 | Creates a <lang>.json file for translatewiki.net. The file consists of metadata, followed by key-value pairs, where | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/blockly/tests/mocha/rect_test.ts | 957 | // ┌─────┐ | COMMENT |
| MEDIUM | packages/blockly/tests/mocha/rect_test.ts | 958 | // └─────┘ | COMMENT |
| MEDIUM | packages/blockly/tests/mocha/rect_test.ts | 986 | // ┌─────┐ | COMMENT |
| MEDIUM | packages/blockly/tests/mocha/rect_test.ts | 989 | // └─────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …es/blockly/tests/mocha/comment_deserialization_test.js | 80 | this.workspace.trashcan.flyout.svgGroup_.querySelector('.blocklyPath'), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/plugins/field-multilineinput/test/index.ts | 50 | text: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed | CODE |
| LOW | packages/plugins/field-multilineinput/test/index.ts | 50 | text: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed | CODE |
| LOW | packages/plugins/field-multilineinput/test/index.ts | 82 | text: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed | CODE |
| LOW | packages/plugins/field-multilineinput/test/index.ts | 82 | text: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed | CODE |
| LOW | …kages/plugins/workspace-search/src/workspace_search.ts | 262 | textInput.setAttribute('placeholder', this.textInputPlaceholder); | CODE |
| LOW | …kages/plugins/workspace-search/src/workspace_search.ts | 459 | this.inputElement.setAttribute('placeholder', this.textInputPlaceholder); | CODE |
| LOW | packages/blockly/core/comments/comment_editor.ts | 68 | 'placeholder', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/plugins/migration/bin/fix-imports.js | 61 | // TODO (#1211): Make this database format more robust. | COMMENT |
| MEDIUM | packages/plugins/migration/bin/fix-imports.js | 61 | // TODO (#1211): Make this database format more robust. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/blockly/appengine/add_timestamps.py | 34 | Start a venv: `python3 -m venv venv && source venv/bin/activate` | STRING |
| HIGH | packages/blockly/scripts/i18n/create_messages.py | 129 | var Blockly = Blockly || {{ Msg: Object.create(null) }}; | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/blockly/scripts/i18n/common.py | 226 | except (ValueError, IOError): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/blockly/appengine/storage.py | 59 | CODE | |
| LOW | packages/blockly/scripts/i18n/js_to_json.py | 56 | CODE | |
| LOW | packages/blockly/scripts/i18n/create_messages.py | 49 | CODE | |
| LOW | packages/blockly/scripts/themes/create_blockStyles.py | 52 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/blockly/scripts/i18n/dedup_json.py | 54 | print('Error reading ' + filename) | CODE |
| MEDIUM | packages/blockly/scripts/i18n/common.py | 61 | print('Error reading ' + filename) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/blockly/scripts/i18n/dedup_json.py | 64 | # Output results. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/blockly/tests/generators/golden/generated.py | 1248 | def test_function(): | CODE |