This report summarizes scanner evidence for subquery/subql. SynthScan examined 81,623 lines of code across 1045 source files, recording 129 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.5 (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? 118 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 88 finding(s).
Which changes need focused human review? 129 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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 129 distinct pattern matches across 7 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 | packages/node-core/src/utils/object.ts | 39 | export function customCamelCaseGraphqlKey(str: string) { | CODE |
| LOW | packages/node-core/src/utils/graphql.ts | 31 | export function modelsTypeToModelAttributes( | CODE |
| LOW | packages/node-core/src/db/db.module.ts | 33 | async function establishConnectionSequelize(option: SequelizeOption, numRetries: number): Promise<Sequelize> { | CODE |
| LOW | packages/node-core/src/db/sync-helper.ts | 115 | export function constraintDeferrableQuery(table: string, constraint: string): string { | CODE |
| LOW | packages/node-core/src/db/sync-helper.ts | 175 | export function createSendNotificationTriggerFunction(schema: string): string { | CODE |
| LOW | packages/node-core/src/db/sync-helper.ts | 289 | export function createSchemaTriggerFunction(schema: string): string { | CODE |
| LOW | packages/node-core/src/db/sync-helper.ts | 314 | export function createRewindTriggerFunction(schema: string): string { | CODE |
| LOW | packages/node-core/src/db/sync-helper.ts | 355 | export async function getDbSizeAndUpdateMetadata(sequelize: Sequelize, schema: string): Promise<bigint> { | CODE |
| LOW | packages/node-core/src/db/sync-helper.ts | 434 | export function addIdAndBlockRangeAttributes(attributes: ModelAttributes<Model<any, any>, any>): void { | CODE |
| LOW | packages/node-core/src/db/sync-helper.ts | 448 | export function addBlockRangeColumnToIndexes(indexes: IndexesOptions[]): void { | CODE |
| LOW | …ode-core/src/db/migration-service/migration-helpers.ts | 189 | export function schemaChangesLoggerMessage(schemaChanges: SchemaChangesType): string { | CODE |
| LOW | …es/node-core/src/indexer/dictionary/v2/dictionaryV2.ts | 27 | async function subqlFilterBlocksCapabilities( | CODE |
| LOW | packages/utils/src/graphql/schema.ts | 24 | export function buildSchemaFromDocumentNode(doc: DocumentNode): GraphQLSchema { | CODE |
| LOW | packages/cli/src/createProject.fixtures.ts | 99 | export async function createMultiChainTestProject(): Promise<{multichainManifestPath: string; fullPaths: string[]}> { | CODE |
| LOW | packages/cli/src/utils/networkFamily.ts | 20 | export function findRunnerByNetworkFamily(networkFamily: NETWORK_FAMILY): string { | CODE |
| LOW | packages/cli/src/utils/etherscan.ts | 65 | export async function fetchContractDeployHeight( | CODE |
| LOW⚡ | packages/cli/src/utils/utils.ts | 172 | export function findArrayIndicesTsManifest(content: string, key: string): [number, number] { | CODE |
| LOW⚡ | packages/cli/src/utils/utils.ts | 181 | export function replaceArrayValueInTsManifest(content: string, key: string, newValue: string): string { | CODE |
| LOW⚡ | packages/cli/src/utils/utils.ts | 185 | export function extractArrayValueFromTsManifest(content: string, key: string): string | null { | CODE |
| LOW | packages/cli/src/utils/utils.ts | 241 | export function validateEthereumTsManifest(manifest: string): boolean { | CODE |
| LOW | packages/cli/src/utils/utils.ts | 267 | export function defaultEnvDevelopLocalPath(projectPath: string): string { | CODE |
| LOW | packages/cli/src/utils/utils.ts | 292 | export function defaultMultiChainYamlManifestPath(projectPath: string): string { | CODE |
| LOW | packages/cli/src/utils/build.ts | 32 | export async function buildManifestFromLocation(location: string, log: (...args: any[]) => void): Promise<string> { | CODE |
| LOW | packages/cli/src/utils/build.ts | 140 | function getTsManifestsFromMultichain(location: string): string[] { | CODE |
| LOW | packages/cli/src/utils/build.ts | 152 | function replaceTsReferencesInMultichain(location: string): void { | CODE |
| LOW | packages/cli/src/controller/deploy-controller.ts | 202 | export function splitMultichainDataFields(fieldStr = ''): MultichainDataFieldType { | CODE |
| LOW | packages/cli/src/controller/deploy-controller.ts | 245 | export function generateAdvancedQueryOptions(flags: DeploymentFlagsInterface): QueryAdvancedOpts { | CODE |
| LOW | packages/cli/src/controller/add-chain-controller.ts | 56 | export function determineMultichainManifestPath(multichain: string): string { | CODE |
| LOW | packages/cli/src/controller/add-chain-controller.ts | 104 | export function validateAndAddChainManifest( | CODE |
| LOW | packages/cli/src/controller/add-chain-controller.ts | 104 | export function validateAndAddChainManifest( | CODE |
| LOW | packages/cli/src/controller/add-chain-controller.ts | 170 | async function getDefaultServiceConfiguration( | CODE |
| LOW | packages/cli/src/controller/generate-controller.ts | 144 | export function filterObjectsByStateMutability( | CODE |
| LOW | packages/cli/src/controller/generate-controller.ts | 161 | function generateFormattedHandlers( | CODE |
| LOW | packages/cli/src/controller/codegen-controller.ts | 363 | export async function generateDatasourceTemplates(projectPath: string, templates: TemplateKind[]): Promise<void> { | CODE |
| LOW | packages/cli/src/controller/init-controller.ts | 395 | async function prepareProjectScaffoldYAML(defaultYamlPath: string): Promise<void> { | CODE |
| LOW | packages/cli/src/controller/init-controller.ts | 401 | export async function validateEthereumProjectManifest(projectPath: string): Promise<boolean> { | CODE |
| LOW | packages/cli/src/controller/network/utils.ts | 10 | export async function checkAndIncreaseAllowance( | CODE |
| LOW | …cli/src/controller/network/list-deployment-indexers.ts | 47 | async function getIndexerDeploymentMetadata(url: string, deploymentId: string): Promise<IndexerDeploymentMetadata> { | CODE |
| LOW | packages/cli/src/controller/network/constants.ts | 32 | export function gqlProjectTypeToProjectType(projectType: ProjectTypeGql): ProjectType { | CODE |
| LOW | …kages/cli/src/controller/migrate/migrate-controller.ts | 88 | function networkFamilyToTemplateNetwork(networkFamily: NETWORK_FAMILY): string { | CODE |
| LOW | …src/controller/migrate/abis/migrate-abis.controller.ts | 14 | async function copyAbiFilesToTargetPathAsync(abiFiles: string[], targetPath: string): Promise<void> { | CODE |
| LOW | …roller/migrate/manifest/migrate-manifest.controller.ts | 52 | export async function extractNetworkFromManifest(subgraphProject: SubgraphProject): Promise<ChainInfo> { | CODE |
| LOW | …roller/migrate/manifest/migrate-manifest.controller.ts | 116 | function graphManifestToSubqlManifest(chainInfo: ChainInfo, subgraphManifest: SubgraphProject): CommonSubqueryProject { | CODE |
| LOW | …roller/migrate/manifest/migrate-manifest.controller.ts | 142 | export function subgraphTemplateToSubqlTemplate( | CODE |
| LOW | packages/cli/src/commands/migrate.ts | 147 | export function registerMigrateSubgraphMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/build-manifest.ts | 51 | export function registerBuildManifestMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/multi-chain/add.ts | 44 | export function registerMultichainAddMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/network/create-flex-plan.ts | 118 | export function registerCreateNetworkFlexPlanMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/network/list-deployments.ts | 57 | export function registerListNetworkDeploymentsMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/network/create-project.ts | 189 | export function registerCreateNetworkProjectMCPTool(server: McpServer, opts: MCPToolOptions): RegisteredTool { | CODE |
| LOW | …ckages/cli/src/commands/network/list-account-boosts.ts | 75 | export function registerListAccountBoostsMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/network/remove-api-key.ts | 65 | export function registerRemoveApiKeyMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/network/create-deployment.ts | 110 | export function registerCreateNetworkDeploymentMCPTool(server: McpServer, opts: MCPToolOptions): RegisteredTool { | CODE |
| LOW | …ages/cli/src/commands/network/swap-deployment-boost.ts | 45 | async function swapDeploymentBoostAdapter( | CODE |
| LOW | …ages/cli/src/commands/network/swap-deployment-boost.ts | 99 | export function registerSwapDeploymentBoostMCPTool(server: McpServer, opts: MCPToolOptions): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/network/list-flex-plans.ts | 81 | export function registerListFlexPlansMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | …ges/cli/src/commands/network/list-deployment-boosts.ts | 58 | export function registerListDeploymentBoostsMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | …s/cli/src/commands/network/list-deployment-indexers.ts | 71 | export function registerListDeploymentIndexersMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/network/stop-flex-plan.ts | 69 | export function registerStopNetworkFlexPlanMCPTool(server: McpServer): RegisteredTool { | CODE |
| LOW | packages/cli/src/commands/network/list-projects.ts | 79 | export function registerListNetworkProjectsMCPTool(server: McpServer): RegisteredTool { | CODE |
| 28 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/node-core/src/yargs.ts | 155 | // example: JSON.stringify({ headers: { 'api-key': '<your-api-key>'}}) | COMMENT |
| HIGH | packages/node-core/src/yargs.ts | 162 | // example: JSON.stringify({ headers: { 'api-key': '<your-api-key>'}}) | COMMENT |
| HIGH | …kages/node-core/src/configure/configure.module.spec.ts | 49 | const option = {headers: {'api-key': '<your-api-key>'}}; | CODE |
| HIGH | …kages/node-core/src/configure/configure.module.spec.ts | 59 | const option = {headers: {'api-key': '<your-api-key>'}}; | CODE |
| HIGH | …kages/node-core/src/configure/configure.module.spec.ts | 72 | const option = {headers: {'api-key': '<your-api-key>'}}; | CODE |
| HIGH | …kages/node-core/src/configure/configure.module.spec.ts | 93 | const option = {headers: {'api-key': '<your-api-key>'}}; | CODE |
| HIGH | …kages/node-core/src/configure/configure.module.spec.ts | 105 | const option = {headers: {'api-key': '<your-api-key>'}}; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | packages/node-core/src/meta/health.service.ts | 45 | await this.storeService.modelProvider.metadata.model.upsert({key: 'indexerHealthy', value: healthy}); | CODE |
| CRITICAL | packages/node/src/blockchain.service.ts | 138 | await this.apiService.unsafeApi.rpc.chain.getFinalizedHead(); | CODE |
| CRITICAL | packages/node/src/blockchain.service.ts | 144 | const bestHeader = await this.apiService.unsafeApi.rpc.chain.getHeader(); | CODE |
| CRITICAL | packages/node/src/blockchain.service.ts | 165 | const hash = await this.apiService.unsafeApi.rpc.chain.getBlockHash(height); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | jest.config.js | 41 | // Indicates which provider should be used to instrument code for coverage | COMMENT |
| LOW | jest.config.js | 61 | // Force coverage collection from ignored files using an array of glob patterns | COMMENT |
| LOW | jest.config.js | 101 | // modulePathIgnorePatterns: [], | COMMENT |
| LOW | jest.config.js | 121 | // Reset the module registry before running each individual test | COMMENT |
| LOW | jest.config.js | 141 | COMMENT | |
| LOW | jest.config.js | 201 | COMMENT | |
| LOW | deploy/k8s/deploy.yaml | 61 | fsGroup: 1000 | COMMENT |
| LOW | …ages/node-core/src/indexer/poi/poiSync.service.spec.ts | 41 | // upsert: jest.fn(), | COMMENT |
| LOW | packages/cli/chs-swagger.yml | 121 | responses: | COMMENT |
| LOW | packages/cli/chs-swagger.yml | 141 | # responses: | COMMENT |
| LOW | packages/cli/chs-swagger.yml | 161 | # /users/channels/{channel}: | COMMENT |
| LOW | packages/cli/chs-swagger.yml | 181 | # get: | COMMENT |
| LOW | packages/cli/chs-swagger.yml | 201 | # 200: | COMMENT |
| LOW | packages/cli/chs-swagger.yml | 221 | # responses: | COMMENT |
| LOW | packages/cli/chs-swagger.yml | 241 | # 200: | COMMENT |
| LOW | …controller/migrate/schema/migrate-schema.controller.ts | 21 | COMMENT | |
| LOW | packages/cli/src/adapters/utils.ts | 261 | }, | COMMENT |
| LOW | packages/node/src/indexer/api.service.test.ts | 241 | // ); | COMMENT |
| LOW | packages/node/src/indexer/api.service.test.ts | 261 | // ); | COMMENT |
| LOW | packages/node/src/indexer/api.service.test.ts | 281 | // it('api.queryMulti', async () => { | COMMENT |
| LOW | packages/node/src/indexer/api.service.test.ts | 301 | // const patchedApiResults = await patchedApi.queryMulti([ | COMMENT |
| LOW | packages/node/src/indexer/api.service.test.ts | 321 | // TEST_BLOCKNUMBER, | COMMENT |
| LOW | packages/node/src/indexer/api.service.test.ts | 341 | // const apiAt = await api.at(TEST_BLOCKHASH); | COMMENT |
| LOW | packages/node/src/indexer/api.service.test.ts | 361 | // /is not supported/, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/update_versions.sh | 12 | # Check if the provided argument is a valid file | COMMENT |
| LOW | scripts/update_versions.sh | 25 | # Check if there are any changes | COMMENT |
| LOW | scripts/update_versions.sh | 37 | # Check if the provided argument is a valid file | COMMENT |
| LOW | scripts/update_versions.sh | 50 | # Check if the version is a prerelease (ends with a hyphen and one or more digits) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/cli/src/utils/utils.ts | 240 | // Cold validate on ts manifest, for generate scaffold command | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/scripts/benchmark/cleanHistory.sh | 9 | # Create the new directory | COMMENT |