Skip to content

Update header year to 2026#358

Open
taozui472 wants to merge 1 commit intosubquery:mainfrom
taozui472:taozui/patch
Open

Update header year to 2026#358
taozui472 wants to merge 1 commit intosubquery:mainfrom
taozui472:taozui/patch

Conversation

@taozui472
Copy link

@taozui472 taozui472 commented Jan 8, 2026

Summary by CodeRabbit

  • New Features

    • Added new convenience exports to the public API for improved library accessibility.
  • Chores

    • Updated copyright year headers to 2026 across the codebase.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 8, 2026

📝 Walkthrough

Walkthrough

This PR updates copyright year headers from 2020-2025 to 2020-2026 across approximately 60 files in the packages/common-cosmos, packages/node, and packages/types directories. Additionally, three files add new public export aliases to improve API convenience.

Changes

Cohort / File(s) Summary
Copyright Year Updates
.eslintrc.js, packages/common-cosmos/src/codegen/*, packages/common-cosmos/src/project/load.ts, packages/common-cosmos/src/project/models.ts, packages/common-cosmos/src/project/project.spec.ts, packages/common-cosmos/src/project/types.ts, packages/common-cosmos/src/project/versioned/ProjectManifestVersioned.ts, packages/common-cosmos/src/project/versioned/v1_0_0/*, packages/common-cosmos/src/index.ts, packages/node/src/**/*.ts, packages/types/src/**/*.ts
Updated copyright year in file headers from 2020-2025 to 2020-2026 (or 2025 to 2026 where applicable). No functional or behavioral changes.
New Public Export Aliases
packages/common-cosmos/src/project/index.ts
Added three new public export aliases for convenience: parseProjectManifest (alias for parseCosmosProjectManifest), isRuntimeDs (alias for isRuntimeCosmosDs), and isCustomDs (alias for isCustomCosmosDs). Existing exports remain unchanged.
New Re-export
packages/common-cosmos/src/project/versioned/index.ts
Added new re-export: export * from './v1_0_0'. Expands the public API surface while maintaining all existing exports.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A year flies by, the time's gone 'round,
From '25 to '26, progress found!
New aliases bloom for API's grace,
Copyright updated, all in place.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the primary change across all files: updating copyright header years from 2025 to 2026.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

🤖 Fix all issues with AI agents
In @packages/common-cosmos/src/codegen/codegen-controller.ts:
- Line 1: Top-of-file comment has a duplicated comment prefix "// //" in the
copyright header; edit the header in codegen-controller.ts to remove the extra
slash so it reads "// Copyright 2020-2026 SubQuery Pte Ltd authors &
contributors" (i.e., replace "// //" with "//") at the top of the file.

In @packages/common-cosmos/src/codegen/index.ts:
- Line 1: The file header has a duplicated comment prefix ("// //") in the
copyright line; update the header in packages common-cosmos codegen index.ts by
replacing the double prefix with a single "//" so the copyright begins with "//"
(locate the malformed line at the top of the file in index.ts and remove the
extra slash).

In @packages/node/src/configure/SubqueryProject.ts:
- Line 1: There's a typo in the file header where the copyright line begins with
a double comment prefix ("// //"); update the top-of-file comment in
SubqueryProject.ts to a single-line comment prefix ("//") so the header reads
normally, ensuring the rest of the header text and spacing remain unchanged.

In @packages/node/src/indexer/api.service.ts:
- Line 1: The file header contains a duplicated comment prefix ("// //") in the
copyright line; replace the double prefix with a single comment prefix so the
line starts with "//" instead of "// //". Ensure the rest of the header text
remains unchanged.

In @packages/node/src/indexer/fetch.module.ts:
- Line 1: The file header in packages/node/src/indexer/fetch.module.ts (and
other files under packages/types/, packages/common-cosmos/, packages/node/src/)
uses a double prefix "// //"; change those header comment lines to use a single
"//" prefix (e.g., replace the leading "// //" with "//") so the copyright
header formatting is consistent across the codebase; update all files with the
same pattern to match the standard single-line comment style.

In @packages/node/src/indexer/rpc-clients/RpcClient.ts:
- Line 1: Fix the doubled comment prefix in the file header by changing the
leading "// //" to a single "//" at the top comment (the copyright header line
in RpcClient.ts); ensure the header now reads "// Copyright 2020-2026 SubQuery
Pte Ltd authors & contributors" so there is only one comment marker.

In @packages/node/src/indexer/worker/worker.service.ts:
- Line 1: The file header contains a duplicated comment prefix ("// //") at the
top; remove the extra slash so the copyright line starts with a single comment
marker ("//") to correct the typo.

In @packages/types/src/project.ts:
- Line 1: The file header has a duplicated comment prefix ("// //") in the
copyright line; update that header so the comment begins with a single "//"
(replace "// //" with "//") to fix the typo in the top-of-file comment.
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 457ac00 and b301903.

📒 Files selected for processing (67)
  • .eslintrc.js
  • packages/common-cosmos/src/codegen/codegen-controller.spec.ts
  • packages/common-cosmos/src/codegen/codegen-controller.ts
  • packages/common-cosmos/src/codegen/constants.ts
  • packages/common-cosmos/src/codegen/index.ts
  • packages/common-cosmos/src/codegen/util.ts
  • packages/common-cosmos/src/index.ts
  • packages/common-cosmos/src/project/index.ts
  • packages/common-cosmos/src/project/load.ts
  • packages/common-cosmos/src/project/models.ts
  • packages/common-cosmos/src/project/project.spec.ts
  • packages/common-cosmos/src/project/types.ts
  • packages/common-cosmos/src/project/utils.ts
  • packages/common-cosmos/src/project/versioned/ProjectManifestVersioned.ts
  • packages/common-cosmos/src/project/versioned/index.ts
  • packages/common-cosmos/src/project/versioned/v1_0_0/index.ts
  • packages/common-cosmos/src/project/versioned/v1_0_0/model.ts
  • packages/node/src/app.module.ts
  • packages/node/src/blockchain.service.spec.ts
  • packages/node/src/blockchain.service.ts
  • packages/node/src/configure/NodeConfig.ts
  • packages/node/src/configure/SubqueryProject.ts
  • packages/node/src/configure/configure.module.ts
  • packages/node/src/indexer/api.service.test.ts
  • packages/node/src/indexer/api.service.ts
  • packages/node/src/indexer/cosmosClient.connection.ts
  • packages/node/src/indexer/dictionary/dictionary.service.ts
  • packages/node/src/indexer/dictionary/v1/dictionaryV1.spec.ts
  • packages/node/src/indexer/dictionary/v1/dictionaryV1.ts
  • packages/node/src/indexer/dictionary/v1/index.ts
  • packages/node/src/indexer/fetch.module.ts
  • packages/node/src/indexer/indexer.manager.ts
  • packages/node/src/indexer/rpc-clients/HttpClient.ts
  • packages/node/src/indexer/rpc-clients/RpcClient.ts
  • packages/node/src/indexer/rpc-clients/WebsocketClient.ts
  • packages/node/src/indexer/rpc-clients/index.ts
  • packages/node/src/indexer/types.ts
  • packages/node/src/indexer/worker/worker-fetch.module.ts
  • packages/node/src/indexer/worker/worker.module.ts
  • packages/node/src/indexer/worker/worker.service.ts
  • packages/node/src/indexer/worker/worker.ts
  • packages/node/src/init.ts
  • packages/node/src/main.ts
  • packages/node/src/subcommands/forceClean.init.ts
  • packages/node/src/subcommands/forceClean.module.ts
  • packages/node/src/subcommands/reindex.init.ts
  • packages/node/src/subcommands/reindex.module.spec.ts
  • packages/node/src/subcommands/reindex.module.ts
  • packages/node/src/subcommands/testing.init.ts
  • packages/node/src/subcommands/testing.module.spec.ts
  • packages/node/src/subcommands/testing.module.ts
  • packages/node/src/subcommands/testing.service.ts
  • packages/node/src/utils/celestia.ts
  • packages/node/src/utils/cosmos.spec.ts
  • packages/node/src/utils/cosmos.ts
  • packages/node/src/utils/kyve/kyve.spec.ts
  • packages/node/src/utils/kyve/kyve.ts
  • packages/node/src/utils/kyve/kyveTypes.ts
  • packages/node/src/utils/project.spec.ts
  • packages/node/src/utils/project.ts
  • packages/node/src/yargs.ts
  • packages/node/test/jsonfy.js
  • packages/types/src/global.ts
  • packages/types/src/index.ts
  • packages/types/src/interfaces.ts
  • packages/types/src/modular.ts
  • packages/types/src/project.ts
🔇 Additional comments (57)
packages/common-cosmos/src/codegen/util.ts (1)

1-1: Copyright header year updated correctly.

The copyright year has been properly updated to 2020-2026, reflecting the current year. No functional changes to the utility functions.

packages/node/src/utils/project.spec.ts (1)

1-1: Copyright header year updated correctly.

The copyright year has been properly updated to 2020-2026. No changes to test logic or assertions.

packages/common-cosmos/src/project/versioned/ProjectManifestVersioned.ts (1)

1-1: Copyright header year updated correctly.

The copyright year has been properly updated to 2020-2026. No changes to type definitions, class implementation, or public API surface.

packages/node/src/indexer/worker/worker.ts (1)

1-1: LGTM! Copyright year updated correctly.

The header year update to 2026 is appropriate and follows standard maintenance practices.

packages/node/src/subcommands/reindex.module.ts (1)

1-1: LGTM! Copyright year updated correctly.

.eslintrc.js (1)

88-88: LGTM! ESLint header rule example updated correctly.

The example comment is updated to reflect 2026, while the regex pattern on line 89 already accepts any year format.

packages/node/src/indexer/dictionary/v1/dictionaryV1.ts (1)

1-1: LGTM! Copyright year updated correctly.

packages/node/src/indexer/rpc-clients/HttpClient.ts (1)

1-1: LGTM! Copyright year updated correctly.

packages/node/src/blockchain.service.spec.ts (1)

1-1: Copyright header updated.

No functional changes; test logic and coverage remain unchanged.

packages/node/src/indexer/dictionary/dictionary.service.ts (1)

1-1: Copyright header updated.

No functional changes; service implementation and dependencies remain unchanged.

packages/node/src/blockchain.service.ts (1)

1-1: Copyright header updated to 2020-2026.

No functional changes; service implementation and all imports remain unchanged. The imports of isCustomDs and isRuntimeDs in this file resolve correctly and are unaffected by the re-export aliases being added in packages/common-cosmos/src/project/index.ts.

packages/node/src/app.module.ts (1)

1-1: Copyright year update looks good.

The header has been correctly updated to reflect 2026. No functional changes to the module configuration or exports.

packages/node/src/subcommands/forceClean.module.ts (1)

1-1: Copyright year update looks good.

The header has been correctly updated to reflect 2026. No changes to module dependencies or exports.

packages/node/src/indexer/indexer.manager.ts (1)

1-1: Copyright year update looks good.

The header has been correctly updated to reflect 2026. No changes to class implementation, method logic, or imports.

packages/common-cosmos/src/project/project.spec.ts (1)

1-1: Header year update approved.

Copyright year bump to 2026 is correct and consistent across the codebase.

packages/node/src/configure/NodeConfig.ts (1)

1-1: Header year update approved.

Copyright year bump to 2026 is correct with no impact on the class or interface definitions.

packages/node/src/utils/cosmos.ts (1)

1-1: Header year update approved.

Copyright year bump to 2026 is correct with no changes to the module's functions, exports, or behavior.

packages/node/src/init.ts (1)

1-1: LGTM!

Copyright header year update is a safe, routine maintenance change.

packages/node/src/subcommands/reindex.module.spec.ts (1)

1-1: LGTM!

Copyright header year update to test spec file is a safe, routine maintenance change.

packages/node/src/indexer/dictionary/v1/dictionaryV1.spec.ts (2)

1-1: LGTM!

Copyright header year update to test spec file is a safe, routine maintenance change.


1-166: Inconsistency detected between AI summary and provided code.

The AI summary states: "Additionally, three files add new public export aliases to improve API convenience." However, the three files provided contain only copyright header updates with no new public export aliases, new exports, or API surface changes.

Please clarify whether export alias additions exist in other files, or if the summary is inaccurate.

packages/node/src/utils/cosmos.spec.ts (1)

1-1: Copyright header updated correctly.

Routine copyright year increment with no impact on functionality.

packages/common-cosmos/src/project/versioned/v1_0_0/model.ts (1)

1-1: Copyright header updated correctly.

Routine copyright year increment with no impact on type definitions or exports.

packages/node/src/yargs.ts (1)

1-1: Copyright header updated correctly.

Routine copyright year increment with no impact on CLI configuration or functionality.

packages/common-cosmos/src/codegen/codegen-controller.spec.ts (1)

1-1: Header copyright year updated correctly.

The copyright year has been updated from 2020-2025 to 2020-2026 as intended. No functional changes to the test logic or imports.

packages/node/src/subcommands/forceClean.init.ts (1)

1-1: Header copyright year updated correctly.

The copyright year has been updated to 2020-2026. No changes to the export or logic.

packages/node/src/indexer/api.service.test.ts (1)

1-1: Header copyright year updated correctly.

The copyright year has been updated from 2020-2025 to 2020-2026. No changes to test logic, imports, or test cases.

packages/types/src/interfaces.ts (1)

1-1: Approve header year update.

The copyright year update from 2020-2025 to 2020-2026 is correct and straightforward with no impact to the type definitions or public API.

However, verify that the double-slash pattern (// //) in the header is intentional. This pattern appears consistently across all three files in this PR and may be a formatting artifact.

packages/common-cosmos/src/codegen/constants.ts (1)

1-1: Approve header year update.

The copyright year update is correct with no impact to configuration constants or exports.

packages/node/src/indexer/cosmosClient.connection.ts (1)

1-1: Approve header year update.

The copyright year update is correct with no impact to the class implementation, method signatures, or logic.

packages/node/src/utils/project.ts (1)

1-1: Copyright header year update looks good.

Correctly updated to 2026 with no functional changes.

packages/node/src/utils/celestia.ts (1)

1-1: Copyright header year update looks good.

Correctly updated to 2026 with no functional changes.

packages/node/src/indexer/rpc-clients/WebsocketClient.ts (1)

1-1: Copyright header year update looks good.

Correctly updated to 2026 with no functional changes.

packages/node/src/main.ts (1)

1-1: Header year update matches PR intent

Only the copyright year was updated; runtime behavior (BigInt JSON override, logger init, bootstrap flow) is unchanged and remains consistent with existing patterns.

packages/node/src/utils/kyve/kyve.spec.ts (1)

1-1: Test file header refreshed correctly

Year range now includes 2026; all Kyve test logic and external interactions are untouched.

packages/node/test/jsonfy.js (1)

2-2: Non-functional header change only

The copyright header now covers 2020–2026; the Jsonfy datasource plugin behavior is unchanged.

packages/common-cosmos/src/project/models.ts (1)

1-1: Models file header updated without impacting APIs

Only the header year changed; all Cosmos project model types and validation logic are identical to prior behavior.

packages/node/src/indexer/worker/worker.module.ts (1)

1-1: Worker module header aligned to 2026

Header year now includes 2026; Nest module wiring (imports and configuration) is unchanged.

packages/node/src/indexer/worker/worker-fetch.module.ts (1)

1-2: Header year update looks good.

Copyright year correctly updated to 2026. No other changes to the module structure or logic.

packages/common-cosmos/src/index.ts (1)

1-2: Header year update looks good.

Copyright year correctly updated to 2026. No changes to exports or module type contract.

packages/node/src/subcommands/reindex.init.ts (2)

1-2: Header year update looks good.

Copyright year correctly updated to 2026.


5-5: No action needed: EventEmitterModule addition was in a previous commit.

The EventEmitterModule import and forRoot() call were added in commit c4c10df ("Fix testing subcommand deps, add tests #326") to resolve dependency issues for the testing subcommand. The current PR (copyright year update) only includes this file because the header is being updated. This is not scope creep—the functional change was appropriately scoped in an earlier commit with clear justification.

packages/node/src/indexer/dictionary/v1/index.ts (1)

1-1: Header year update is correct.

The copyright year has been properly updated from 2020-2025 to 2020-2026.

packages/types/src/modular.ts (1)

1-1: Header year update is correct.

The copyright year has been properly updated from 2020-2025 to 2020-2026. No functional changes to the module.

packages/types/src/index.ts (1)

1-1: Header year update is correct.

The copyright year has been properly updated from 2020-2025 to 2020-2026. Exports remain unchanged.

packages/node/src/indexer/types.ts (1)

1-1: Header copyright year update approved.

The copyright year header has been correctly updated to 2020-2026. No functional code changes detected.

packages/node/src/indexer/rpc-clients/index.ts (1)

1-1: Header copyright year update approved.

The copyright year header has been correctly updated to 2020-2026. Exports remain unchanged.

packages/types/src/global.ts (1)

1-1: Header copyright year update approved.

The copyright year header has been correctly updated to 2020-2026. No type or global declaration changes detected.

packages/common-cosmos/src/project/load.ts (1)

1-1: LGTM!

Copyright year updated correctly to 2026.

packages/node/src/subcommands/testing.service.ts (1)

1-1: LGTM!

Copyright year updated correctly to 2026.

packages/node/src/utils/kyve/kyve.ts (1)

1-1: LGTM!

Copyright year updated correctly to 2026.

packages/node/src/subcommands/testing.module.spec.ts (1)

1-1: LGTM!

Copyright year updated correctly to 2026.

packages/node/src/subcommands/testing.module.ts (1)

1-1: LGTM!

Copyright year updated correctly to 2026.

packages/common-cosmos/src/project/versioned/index.ts (2)

1-1: Copyright year updated correctly.

The copyright header has been properly updated to 2020-2026, which aligns with the PR objectives.


5-5: AI summary inconsistency detected.

The AI-generated summary claims that export * from './v1_0_0' was added as a new re-export in this PR. However, this line is not marked as changed in the diff, indicating it already existed in the codebase. The actual change in this file is only the copyright year update on line 1.

packages/common-cosmos/src/project/index.ts (2)

1-1: Copyright year updated correctly.

The copyright header has been properly updated to 2020-2026, which aligns with the PR objectives.


10-13: AI summary inconsistency detected.

The AI-generated summary claims that alias exports (parseProjectManifest, isRuntimeDs, isCustomDs) were added in this PR. However, these lines are not marked as changed in the diff, indicating they already existed in the codebase. The actual change in this file is only the copyright year update on line 1.

@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/common-cosmos/src/codegen/codegen-controller.ts at line 1,
Top-of-file comment has a duplicated comment prefix "// //" in the copyright
header; edit the header in codegen-controller.ts to remove the extra slash so it
reads "// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors" (i.e.,
replace "// //" with "//") at the top of the file.

@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/common-cosmos/src/codegen/index.ts at line 1, The file header has a
duplicated comment prefix ("// //") in the copyright line; update the header in
packages common-cosmos codegen index.ts by replacing the double prefix with a
single "//" so the copyright begins with "//" (locate the malformed line at the
top of the file in index.ts and remove the extra slash).

@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue as other files - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/node/src/configure/SubqueryProject.ts at line 1, There's a typo in
the file header where the copyright line begins with a double comment prefix
("// //"); update the top-of-file comment in SubqueryProject.ts to a single-line
comment prefix ("//") so the header reads normally, ensuring the rest of the
header text and spacing remain unchanged.

@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/node/src/indexer/api.service.ts at line 1, The file header contains
a duplicated comment prefix ("// //") in the copyright line; replace the double
prefix with a single comment prefix so the line starts with "//" instead of "//
//". Ensure the rest of the header text remains unchanged.

@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check the actual file content first
echo "=== Checking fetch.module.ts content ==="
head -5 packages/node/src/indexer/fetch.module.ts

echo -e "\n=== Checking copyright headers with single // ==="
rg -n "^// Copyright 20" --type ts | head -20

echo -e "\n=== Checking copyright headers with double // ==="
rg -n "^// // Copyright 20" --type ts | head -20

echo -e "\n=== Checking for any double comment patterns ==="
rg "^// //" --type ts | head -20

Repository: subquery/subql-cosmos

Length of output: 5327


Fix inconsistent copyright header formatting across the codebase.

The copyright header uses // // instead of the standard single //. This pattern is widespread across multiple files (packages/types/, packages/common-cosmos/, packages/node/src/), while others use the correct single //. Standardize all copyright headers to use a single // prefix.

🤖 Prompt for AI Agents
In @packages/node/src/indexer/fetch.module.ts at line 1, The file header in
packages/node/src/indexer/fetch.module.ts (and other files under
packages/types/, packages/common-cosmos/, packages/node/src/) uses a double
prefix "// //"; change those header comment lines to use a single "//" prefix
(e.g., replace the leading "// //" with "//") so the copyright header formatting
is consistent across the codebase; update all files with the same pattern to
match the standard single-line comment style.

@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/node/src/indexer/rpc-clients/RpcClient.ts at line 1, Fix the
doubled comment prefix in the file header by changing the leading "// //" to a
single "//" at the top comment (the copyright header line in RpcClient.ts);
ensure the header now reads "// Copyright 2020-2026 SubQuery Pte Ltd authors &
contributors" so there is only one comment marker.

@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

The copyright header has // // instead of //. This appears to be unintentional.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/node/src/indexer/worker/worker.service.ts at line 1, The file
header contains a duplicated comment prefix ("// //") at the top; remove the
extra slash so the copyright line starts with a single comment marker ("//") to
correct the typo.

@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/types/src/project.ts at line 1, The file header has a duplicated
comment prefix ("// //") in the copyright line; update that header so the
comment begins with a single "//" (replace "// //" with "//") to fix the typo in
the top-of-file comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant