Skip to content

chore: allow use of for..of loop - #4676

Merged
maheshkutty merged 6 commits into
developfrom
chore.unrestrict_use_of_for.of
Sep 26, 2025
Merged

maheshkutty merged 6 commits into
developfrom
chore.unrestrict_use_of_for.of

Conversation

@maheshkutty

@maheshkutty maheshkutty commented Sep 24, 2025 •

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

This pull request updates ESLint configuration and removes unnecessary inline eslint-disable-next-line no-restricted-syntax comments throughout the codebase. The primary change is to restrict only ForInStatement usage via ESLint, allowing other modern loop constructs without manual comment overrides. This results in cleaner code and more precise linting.

ESLint configuration update:

  • .eslintrc.json: Changes the no-restricted-syntax rule to only restrict ForInStatement, allowing other loop types without lint overrides.

Code cleanup (removal of unnecessary lint comments):

  • Various files (scripts/common.ts, src/services/eventTest/eventTester.ts, src/testRouter.js, src/v0/destinations/active_campaign/transform.js, src/v0/destinations/am/utils.js, src/v0/destinations/bqstream/util.js, src/v0/destinations/branch/transform.js, src/v0/destinations/braze/util.js, src/v0/destinations/canny/transform.js, src/v0/destinations/clevertap/deleteUsers.js, src/v0/destinations/emarsys/deleteUsers.js, src/v0/destinations/hs/util.js, src/v0/destinations/monetate/utils.js, src/v0/destinations/sprig/deleteUsers.js, src/v0/util/index.js): Removes eslint-disable-next-line no-restricted-syntax comments from all for...of and similar loops, as these are now allowed by the updated ESLint rule. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]

Minor refactor for performance:

What is the related Linear task?

Resolves INT-4184

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

N/A

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

N/A

@coderabbitai review


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@maheshkutty
maheshkutty requested a review from a team as a code owner September 24, 2025 07:33
@coderabbitai

coderabbitai Bot commented Sep 24, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Refactor

    • Standardized numeric parsing with Number.parseInt/Number.parseFloat across multiple integrations.
    • Replaced arrays with Sets in selective deduplication and reserved-word checks for faster lookups.
    • Switched core module imports to the node: namespace for improved compatibility.
  • Style

    • Removed numerous lint suppression comments; code now adheres more closely to lint rules without changing runtime behavior.
  • Chores

    • Removed a deprecated internal test router and related routes/utilities no longer in use.
    • Minor import cleanup and reorganization to eliminate duplicates and consolidate directives.

Walkthrough

Removed many inline ESLint-disable comments, standardized Node core imports to the node: namespace, migrated numeric parsing to Number.parseInt/Number.parseFloat, replaced some arrays with Set for membership checks, and deleted the src/testRouter.js module. No public API signature changes.

Changes

Cohort / File(s) Change summary
Lint directive removals
scripts/common.ts, src/services/eventTest/eventTester.ts, src/v0/destinations/am/utils.js, src/v0/destinations/bqstream/util.js, src/v0/destinations/branch/transform.js, src/v0/destinations/clevertap/deleteUsers.js, src/v0/destinations/emarsys/deleteUsers.js, src/v0/destinations/hs/util.js, src/v0/destinations/monetate/utils.js, src/v0/destinations/sprig/deleteUsers.js, src/cdk/v2/destinations/emarsys/utils.js
Removed inline // eslint-disable-next-line ... comments (mostly around for..of loops). No runtime or control-flow changes.
Core imports & numeric parsing
src/v0/util/index.js, src/v0/destinations/active_campaign/transform.js, scripts/common.ts
Switched Node core imports to node: namespace and replaced parseInt/parseFloat with Number.parseInt/Number.parseFloat. Introduced Set for reserved-word checks where applicable. No exported signature changes.
Braze util refactor
src/v0/destinations/braze/util.js
Consolidated imports (InstrumentationError, isDefined), tightened ESLint disables, changed excludeKeys from Array to Set and updated membership checks, and migrated numeric parsing to Number.parse*.
Canny lint updates
src/v0/destinations/canny/transform.js
Removed eslint-disable-next-line no-restricted-syntax comments before for..of loops. No behavioral changes.
Test router removal
src/testRouter.js
Deleted the test router module and all associated test-route, transform-loading, and dispatch logic.
Minor cleanups
src/services/eventTest/eventTester.ts, other touched src/v0/destinations/*
Removed stale comments, duplicate imports, and small structural adjustments while preserving behavior and public signatures.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • ItsSudip
  • manish339k
  • sivashanmukh
  • koladilip

Suggestions: run full lint/CI to catch any regressions from removed disables and validate tests around the removed src/testRouter.js.

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 57.14% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title succinctly and accurately summarizes the core change of the pull request—allowing the use of modern loop constructs by updating ESLint rules—without unnecessary detail or noise. It is clear, concise, and directly reflects the main modification made in the changeset.
Description Check ✅ Passed The pull request description closely follows the repository’s template by providing a “What are the changes introduced” section with detailed explanations, a “What is the related Linear task” section referencing INT-4184, and an objectives section with all required subheadings filled (defaulting to N/A where applicable). It also includes the developer and reviewer checklists at the end, ensuring all template elements are present and properly structured.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore.unrestrict_use_of_for.of

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/v0/destinations/canny/transform.js (1)

107-116: Simplify by direct lookup and avoid scanning all keys

You can skip the outer loop and build promises directly from the mapped destination events. This is clearer and a bit cheaper.

-  const responsePromises = [];
-  const configuredSourceEvents = Object.keys(configuredEventsMap);
-  for (const configuredSourceEvent of configuredSourceEvents) {
-    if (configuredSourceEvent === event) {
-      const destinationEvents = configuredEventsMap[event];
-      for (const destinationEvent of destinationEvents) {
-        responsePromises.push(getTrackResponse(apiKey, message, destinationEvent, metadata));
-      }
-    }
-  }
-  const responseArray = await Promise.all(responsePromises);
+  const destinationEvents = configuredEventsMap[event] || [];
+  const responseArray = await Promise.all(
+    destinationEvents.map((destinationEvent) =>
+      getTrackResponse(apiKey, message, destinationEvent, metadata),
+    ),
+  );
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a5b16f1 and d280165.

⛔ Files ignored due to path filters (1)
  • .eslintrc.json is excluded by !**/*.json
📒 Files selected for processing (15)
  • scripts/common.ts (0 hunks)
  • src/services/eventTest/eventTester.ts (0 hunks)
  • src/testRouter.js (0 hunks)
  • src/v0/destinations/active_campaign/transform.js (0 hunks)
  • src/v0/destinations/am/utils.js (0 hunks)
  • src/v0/destinations/bqstream/util.js (0 hunks)
  • src/v0/destinations/branch/transform.js (0 hunks)
  • src/v0/destinations/braze/util.js (0 hunks)
  • src/v0/destinations/canny/transform.js (1 hunks)
  • src/v0/destinations/clevertap/deleteUsers.js (0 hunks)
  • src/v0/destinations/emarsys/deleteUsers.js (0 hunks)
  • src/v0/destinations/hs/util.js (0 hunks)
  • src/v0/destinations/monetate/utils.js (0 hunks)
  • src/v0/destinations/sprig/deleteUsers.js (0 hunks)
  • src/v0/util/index.js (0 hunks)
💤 Files with no reviewable changes (14)
  • src/v0/destinations/active_campaign/transform.js
  • src/testRouter.js
  • src/v0/destinations/bqstream/util.js
  • src/v0/destinations/branch/transform.js
  • src/v0/destinations/clevertap/deleteUsers.js
  • src/v0/destinations/braze/util.js
  • src/v0/destinations/monetate/utils.js
  • src/v0/destinations/sprig/deleteUsers.js
  • src/v0/destinations/emarsys/deleteUsers.js
  • src/v0/util/index.js
  • scripts/common.ts
  • src/services/eventTest/eventTester.ts
  • src/v0/destinations/hs/util.js
  • src/v0/destinations/am/utils.js
🧰 Additional context used
📓 Path-based instructions (1)
**/*.js

⚙️ CodeRabbit configuration file

Focus on ESLint errors (max 3) and warnings (max 5).

Files:

  • src/v0/destinations/canny/transform.js
🧠 Learnings (1)
📚 Learning: 2025-08-13T04:47:19.615Z
Learnt from: ItsSudip
PR: rudderlabs/rudder-transformer#4497
File: src/v0/destinations/tiktok_ads/transformV2.js:422-435
Timestamp: 2025-08-13T04:47:19.615Z
Learning: The getSuccessRespEvents function in src/v0/util/index.js is designed to be flexible and can accept both single request objects and arrays as the first parameter (message). It simply assigns the input directly to the batchedRequest property without processing, allowing downstream consumers to handle the appropriate format.

Applied to files:

  • src/v0/destinations/canny/transform.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Code Coverage
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)
🔇 Additional comments (1)
src/v0/destinations/canny/transform.js (1)

118-120: LGTM: concurrent aggregation with Promise.all improves latency and removes no-await-in-loop

Order is preserved and this resolves the ESLint no-await-in-loop warning introduced by awaiting inside loops.

  • Confirm that fail-fast semantics are desired (any single rejection fails the whole batch). If partial success is preferred, use Promise.allSettled and collect successes while surfacing failures.
  • Confirm the Canny API (and retrieveUserId) tolerate the added concurrency without rate limiting; otherwise, cap concurrency (e.g., p-limit) or dedupe user lookup.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Sep 24, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.79%. Comparing base (c0e7bda) to head (c4c960c).
⚠️ Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
src/v0/destinations/active_campaign/transform.js 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4676   +/-   ##
========================================
  Coverage    91.79%   91.79%           
========================================
  Files          642      642           
  Lines        33998    34006    +8     
  Branches      8035     8042    +7     
========================================
+ Hits         31207    31215    +8     
+ Misses        2561     2539   -22     
- Partials       230      252   +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
src/v0/destinations/braze/util.js (2)

708-754: Numeric validation can falsely accept non-numeric strings

Number.isNaN('abc') is false, so invalid numeric strings pass validation and later become NaN via Number.parseFloat/parseInt. Parse first, then validate the parsed values.

Apply this diff inside the products.forEach validation:

-      if (Number.isNaN(price)) {
-        throw new InstrumentationError(
-          `Invalid Order Completed event: Price is not a number for product at index: ${products.indexOf(
-            product,
-          )}`,
-        );
-      }
+      const parsedPrice = Number.parseFloat(price);
+      if (!Number.isFinite(parsedPrice)) {
+        throw new InstrumentationError(
+          `Invalid Order Completed event: Price is not a valid number for product at index: ${products.indexOf(
+            product,
+          )}`,
+        );
+      }
@@
-      if (Number.isNaN(quantity)) {
-        throw new InstrumentationError(
-          `Invalid Order Completed event: Quantity is not a number for product at index: ${products.indexOf(
-            product,
-          )}`,
-        );
-      }
+      const parsedQuantity = Number.parseInt(quantity, 10);
+      if (!Number.isSafeInteger(parsedQuantity)) {
+        throw new InstrumentationError(
+          `Invalid Order Completed event: Quantity is not a valid integer for product at index: ${products.indexOf(
+            product,
+          )}`,
+        );
+      }

Optionally, reuse the parsed values when constructing purchase objects to avoid double parsing:

-    let purchaseObj = addMandatoryPurchaseProperties(
-      String(productId),
-      Number.parseFloat(price),
-      currencyCode || prodCur,
-      Number.parseInt(quantity, 10),
-      timestamp,
-    );
+    const priceNum = Number.parseFloat(price);
+    const qtyNum = Number.parseInt(quantity, 10);
+    let purchaseObj = addMandatoryPurchaseProperties(
+      String(productId),
+      priceNum,
+      currencyCode || prodCur,
+      qtyNum,
+      timestamp,
+    );

Also applies to: 765-772


257-261: Failure metric increments on success paths

braze_lookup_failure_count is incremented unconditionally after the request. It should increment only for non-2xx responses.

Apply this diff:

-        stats.counter('braze_lookup_failure_count', 1, {
-          http_status: lookUpResponse.status,
-          destination_id: destination.ID,
-        });
+        if (!isHttpStatusSuccess(lookUpResponse.status)) {
+          stats.counter('braze_lookup_failure_count', 1, {
+            http_status: lookUpResponse.status,
+            destination_id: destination.ID,
+          });
+        }
🧹 Nitpick comments (1)
src/v0/destinations/braze/util.js (1)

1-1: Prefer narrower ESLint disables to avoid masking future issues

File-wide disable of no-param-reassign and @typescript-eslint/naming-convention can hide unintended violations. Consider scoping disables to the smallest regions that need them (specific functions/blocks) and re-enabling afterwards.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eb7be40 and c2125c3.

📒 Files selected for processing (1)
  • src/v0/destinations/braze/util.js (6 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.js

⚙️ CodeRabbit configuration file

Focus on ESLint errors (max 3) and warnings (max 5).

Files:

  • src/v0/destinations/braze/util.js
🧬 Code graph analysis (1)
src/v0/destinations/braze/util.js (2)
src/v0/destinations/braze/braze.util.test.js (5)
  • require (2-2)
  • require (3-12)
  • require (13-13)
  • require (14-17)
  • require (18-18)
src/v0/destinations/braze/transform.js (12)
  • require (4-4)
  • require (5-5)
  • require (6-19)
  • require (22-22)
  • require (23-35)
  • require (36-45)
  • require (48-48)
  • require (49-49)
  • require (50-50)
  • require (51-51)
  • require (52-52)
  • get (3-3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: get_workflow_url
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
src/v0/destinations/braze/util.js (2)

345-352: Set-based exclude list is a solid improvement

Switching from an Array to a Set for excludeKeys improves lookup performance and intent clarity.


366-366: Using Set.has instead of includes is correct

The filter now uses excludeKeys.has(key), matching the Set change and avoiding linear scans.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@koladilip

Copy link
Copy Markdown
Contributor

@maheshkutty we can probably ignore those sonar issues as they are not directly related to this

koladilip
koladilip previously approved these changes Sep 25, 2025
@maheshkutty
maheshkutty force-pushed the chore.unrestrict_use_of_for.of branch from c2125c3 to fa37887 Compare September 25, 2025 08:39
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/v0/util/index.js (1)

1382-1385: Avoid per-call Set allocation for reserved keys

Move the reserved-keys Set to module scope and reuse to reduce allocations; keep isReservedWord shared.

Apply within this function:

-  // Define reserved words
-  const reservedWords = new Set(['__proto__', 'constructor', 'prototype']);
-
-  const isReservedWord = (key) => reservedWords.has(key);
+  // Using module-scope isReservedWord to avoid per-call allocations

Add once at module scope (above this function):

// Module-scope to avoid per-call allocations
const RESERVED_OBJECT_KEYS = new Set(['__proto__', 'constructor', 'prototype']);
const isReservedWord = (key) => RESERVED_OBJECT_KEYS.has(key);
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c2125c3 and fa37887.

⛔ Files ignored due to path filters (1)
  • .eslintrc.json is excluded by !**/*.json
📒 Files selected for processing (15)
  • scripts/common.ts (0 hunks)
  • src/services/eventTest/eventTester.ts (0 hunks)
  • src/testRouter.js (2 hunks)
  • src/v0/destinations/active_campaign/transform.js (3 hunks)
  • src/v0/destinations/am/utils.js (0 hunks)
  • src/v0/destinations/bqstream/util.js (0 hunks)
  • src/v0/destinations/branch/transform.js (0 hunks)
  • src/v0/destinations/braze/util.js (6 hunks)
  • src/v0/destinations/canny/transform.js (1 hunks)
  • src/v0/destinations/clevertap/deleteUsers.js (0 hunks)
  • src/v0/destinations/emarsys/deleteUsers.js (0 hunks)
  • src/v0/destinations/hs/util.js (0 hunks)
  • src/v0/destinations/monetate/utils.js (0 hunks)
  • src/v0/destinations/sprig/deleteUsers.js (0 hunks)
  • src/v0/util/index.js (5 hunks)
💤 Files with no reviewable changes (10)
  • src/services/eventTest/eventTester.ts
  • scripts/common.ts
  • src/v0/destinations/monetate/utils.js
  • src/v0/destinations/hs/util.js
  • src/v0/destinations/branch/transform.js
  • src/v0/destinations/sprig/deleteUsers.js
  • src/v0/destinations/emarsys/deleteUsers.js
  • src/v0/destinations/clevertap/deleteUsers.js
  • src/v0/destinations/am/utils.js
  • src/v0/destinations/bqstream/util.js
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/v0/destinations/braze/util.js
  • src/v0/destinations/active_campaign/transform.js
🧰 Additional context used
📓 Path-based instructions (1)
**/*.js

⚙️ CodeRabbit configuration file

Focus on ESLint errors (max 3) and warnings (max 5).

Files:

  • src/v0/destinations/canny/transform.js
  • src/testRouter.js
  • src/v0/util/index.js
🧠 Learnings (1)
📚 Learning: 2025-08-13T04:47:19.615Z
Learnt from: ItsSudip
PR: rudderlabs/rudder-transformer#4497
File: src/v0/destinations/tiktok_ads/transformV2.js:422-435
Timestamp: 2025-08-13T04:47:19.615Z
Learning: The getSuccessRespEvents function in src/v0/util/index.js is designed to be flexible and can accept both single request objects and arrays as the first parameter (message). It simply assigns the input directly to the batchedRequest property without processing, allowing downstream consumers to handle the appropriate format.

Applied to files:

  • src/v0/destinations/canny/transform.js
🧬 Code graph analysis (2)
src/testRouter.js (1)
src/v0/util/index.js (5)
  • fs (10-10)
  • require (19-19)
  • require (21-27)
  • require (29-29)
  • path (11-11)
src/v0/util/index.js (12)
src/testRouter.js (2)
  • fs (5-5)
  • path (6-6)
src/sources/braze/transform.js (2)
  • fs (4-4)
  • path (3-3)
src/sources/appsflyer/transform.js (2)
  • fs (2-2)
  • path (1-1)
src/sources/auth0/transform.js (2)
  • fs (2-2)
  • path (1-1)
src/sources/customerio/transform.js (2)
  • fs (2-2)
  • path (1-1)
src/sources/adjust/core.js (2)
  • fs (2-2)
  • path (1-1)
src/sources/appcenter/transform.js (2)
  • fs (2-2)
  • path (1-1)
src/sources/canny/util.js (2)
  • fs (2-2)
  • path (1-1)
src/v0/destinations/fb_custom_audience/util.js (1)
  • crypto (3-3)
src/cdk/v2/destinations/emarsys/utils.test.js (1)
  • crypto (13-13)
src/v0/destinations/twitter_ads/util.js (1)
  • crypto (1-1)
src/util/customTransformer-faas.js (1)
  • crypto (2-2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Code Coverage
  • GitHub Check: UT Tests
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: test_and_publish
🔇 Additional comments (6)
src/testRouter.js (2)

5-6: Node core module imports standardized nicely.

Switching to the node: specifiers keeps us aligned with the rest of the codebase. Looks good.


36-36: capitalize helper placement looks solid.

Hoisting the helper keeps transformDestination lean and reuses the existing logic without behavior changes. All good here.

src/v0/util/index.js (4)

613-614: Numeric parsing modernization (Number.parseFloat) — LGTM

Meets common lint rules (no-restricted-globals) and keeps behavior unchanged.


806-811: toFloat/toInt updated to Number.parseFloat/Number.parseInt — LGTM

Clearer intent and avoids global parse functions.


856-861: isFloat uses Number.parseFloat — LGTM

Consistent with other numeric parsing updates.


10-11: Adopt node: specifiers—confirm engine & linter support
Ensure your project’s declared Node version (package.json engines.node) and ESLint/config plugins accept require('node:…'). Several files still use bare core imports (fs, path, crypto); consider a repo-wide sweep to standardize.

Comment thread src/v0/destinations/canny/transform.js Resolved
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@sonarqubecloud

Copy link
Copy Markdown

Comment thread src/v0/destinations/braze/util.js Resolved
@maheshkutty
maheshkutty merged commit 3a46319 into develop Sep 26, 2025
@maheshkutty
maheshkutty deleted the chore.unrestrict_use_of_for.of branch September 26, 2025 10:05
@coderabbitai coderabbitai Bot mentioned this pull request Nov 10, 2025
10 tasks
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.

4 participants