CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
succeeded
Nov 26, 2024 in 29s
CodeScene PR Check
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: -0.12 (9.94 -> 9.83)
- Declining Code Health: 2 findings(s) 🚩
Details
🚩 Declining Code Health (highest to lowest):
- Code Duplication FeedbackContainer.spec.tsx
- Complex Method Feedback.tsx: Feedback
Annotations
Check warning on line 43 in web/src/components/__tests__/FeedbackContainer.spec.tsx
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Code Duplication
The module contains 2 functions with similar structure: 'should display thanks message for modal','should display thanks message for search'. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.
Check warning on line 97 in web/src/components/Feedback.tsx
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ Getting worse: Complex Method
Feedback increases in cyclomatic complexity from 12 to 13, threshold = 10. 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.
Loading