-
-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: revert composition root #6492
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
- Declining Code Health: 1 findings(s) 🚩
- Improving Code Health: 0 findings(s) ✅
- Affected Hotspots: 1 files(s) 🔥
Recommended Review Level: Detailed -- Inspect the code that degrades in code health.
View detailed results in CodeScene
🚩 Declining Code Health (highest to lowest):
- Complex Method index.ts: createServices 🔥
const clientFeatureToggleReadModel = db | ||
? new ClientFeatureToggleReadModel(db, config.eventBus) | ||
: new FakeClientFeatureToggleReadModel(); | ||
const globalFrontendApiCache = new GlobalFrontendApiCache( | ||
config, | ||
segmentReadModel, | ||
clientFeatureToggleReadModel, | ||
configurationRevisionService, | ||
); | ||
|
||
const proxyService = new ProxyService( | ||
config, | ||
stores, | ||
{ | ||
featureToggleServiceV2, | ||
clientMetricsServiceV2, | ||
settingService, | ||
configurationRevisionService, | ||
}, | ||
globalFrontendApiCache, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Getting worse: Complex Method
createServices already has high cyclomatic complexity, and now it increases in Lines of Code from 250 to 267
Why does this problem occur?
This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring. Read more.
To ignore this warning click here.
About the changes
Closes #
Important files
Discussion points