Skip to content

add nested complexity - #101

Open
knorrest wants to merge 2 commits into
masterfrom
knorrest-test-agent
Open

add nested complexity#101
knorrest wants to merge 2 commits into
masterfrom
knorrest-test-agent

Conversation

@knorrest

@knorrest knorrest commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Change-Id: I9eda989f7f0f13210bc66932a50455345c02eb7a

Change-Id: I9eda989f7f0f13210bc66932a50455345c02eb7a
codescene-access[bot]

This comment was marked as outdated.

codescene-staging[bot]

This comment was marked as outdated.

codescene-access[bot]

This comment was marked as outdated.

codescene-staging[bot]

This comment was marked as outdated.

@empear-analytics empear-analytics deleted a comment from codescene-access Bot Jun 4, 2026
@empear-analytics empear-analytics deleted a comment from github-actions Bot Jun 4, 2026
@knorrest
knorrest force-pushed the knorrest-test-agent branch from 1fcd303 to ef0de11 Compare June 4, 2026 10:59
codescene-staging[bot]

This comment was marked as outdated.

codescene-access[bot]

This comment was marked as outdated.

@codescene-access

Copy link
Copy Markdown

/cs-agent skill:fix-code-health-degradations

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

CodeScene Refactoring Agent

✅ Completed

Summary

Detected 1 Code Health degradation in test/js-example.js (Deep, Nested Complexity in mark_purchased).
Extracted inner loop into a helper function mark_mtb_products_purchased to reduce nesting depth from 4 to 3.
Branch now passes all quality gates.

Changes

  • Analyze change set — 1 degradation in test/js-example.js (Deep, Nested Complexity in mark_purchased)
  • Apply fix — extracted mark_mtb_products_purchased helper to reduce nesting depth
  • Verify improvements — analyze_change_set passes, pre_commit_code_health_safeguard passes

Commits

b83dedc - refactor(js-example): extract mark_mtb_products_purchased to reduce nesting depth


Finished at 2026-06-04 11:50:05 UTC · Detailed logs? View logs

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