Skip to content

Conversation

lposen
Copy link
Contributor

@lposen lposen commented Oct 7, 2025

🔹 JIRA Ticket(s) if any

✏️ Description

Please provide a brief description of what this pull request does.

Copy link

qltysh bot commented Oct 7, 2025

4 new issues

Tool Category Rule Count
qlty Structure Function with many parameters (count = 4): initialize2WithApiKey 4

This is from Qlty Cloud, the successor to Code Climate Quality. Learn more.

…lure' into MOB-12231-refactor-classes-to-reduce-circular-dependencies
…lure' into MOB-12231-refactor-classes-to-reduce-circular-dependencies
Copy link

github-actions bot commented Oct 9, 2025

Lines Statements Branches Functions
Coverage: 51%
50.65% (272/537) 20.72% (40/193) 48% (96/200)

Copy link

qltysh bot commented Oct 9, 2025

Diff Coverage: The code coverage on the diff in this pull request is 83.1%.

Total Coverage: This PR will increase coverage by 4.07%.

File Coverage Changes
Path File Coverage Δ Indirect
src/core/classes/Iterable.ts 1.4
src/core/classes/IterableApi.ts 82.7
src/core/classes/IterableAuthManager.ts 66.7
src/inApp/classes/IterableInAppManager.ts 10.4
src/inbox/classes/IterableInboxDataModel.ts 0.2
🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

This is from Qlty Cloud, the successor to Code Climate Quality. Learn more.

Comment on lines +62 to +66
static initialize2WithApiKey(
apiKey: string,
config: IterableConfig = new IterableConfig(),
version: string,
apiEndPoint: string
Copy link

Choose a reason for hiding this comment

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

Function with many parameters (count = 4): initialize2WithApiKey [qlty:function-parameters]

Comment on lines +180 to +185
static trackPushOpenWithCampaignId(
campaignId: number,
templateId: number,
messageId: string | null | undefined,
appAlreadyRunning: boolean,
dataFields?: unknown
Copy link

Choose a reason for hiding this comment

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

Function with many parameters (count = 5): trackPushOpenWithCampaignId [qlty:function-parameters]

Comment on lines +270 to +274
static trackInAppClose(
message: IterableInAppMessage,
location: IterableInAppLocation,
source: IterableInAppCloseSource,
clickedUrl?: string
Copy link

Choose a reason for hiding this comment

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

Function with many parameters (count = 4): trackInAppClose [qlty:function-parameters]

Comment on lines +529 to +535
static updateSubscriptions(
emailListIds: number[] | null,
unsubscribedChannelIds: number[] | null,
unsubscribedMessageTypeIds: number[] | null,
subscribedMessageTypeIds: number[] | null,
campaignId: number,
templateId: number
Copy link

Choose a reason for hiding this comment

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

Function with many parameters (count = 6): updateSubscriptions [qlty:function-parameters]

@lposen lposen marked this pull request as ready for review October 9, 2025 19:23
@Ayyanchira Ayyanchira self-requested a review October 9, 2025 22:31
Copy link
Member

@Ayyanchira Ayyanchira left a comment

Choose a reason for hiding this comment

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

Partially reviewed

"prepare": "yarn build",
"release": "release-it"
"release": "release-it",
"circ": "npx madge --circular --extensions ts ./"
Copy link
Member

Choose a reason for hiding this comment

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

Is it a dedicated package to results circular dependency?

import type { IterableCommerceItem } from './IterableCommerceItem';
import { IterableConfig } from './IterableConfig';
import { IterableLogger } from './IterableLogger';
import type { IterableAuthFailure } from '../types/IterableAuthFailure';
Copy link
Member

Choose a reason for hiding this comment

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

Import 'type' is removed above. Is this one ok?


const RNEventEmitter = new NativeEventEmitter(RNIterableAPI);

const defaultConfig = new IterableConfig();
Copy link
Member

Choose a reason for hiding this comment

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

Not sure how default implementation comes into play. Any possibility of regression?

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.

2 participants