Agent degrade multiple files - #99
Open
adamtornhill wants to merge 5 commits into
Open
Conversation
|
/cs-agent skill:fix-code-health-degradations |
|
…p-example.cs - python-example.py: extract _build_transaction_from_cart helper to eliminate duplication across create_transaction_from_cart* functions - python-example.py: extract _validate_purchase_activation_options to simplify complex conditional in initialize_purchase_transaction - csharp-example.cs: extract ProcessNonFlagToken to reduce nesting depth in CalculateExecutionScore - csharp-example.cs: extract ShouldApplyForceBonus, HasCriticalScoreOutOfBounds, ApplyModeFloor helpers to simplify complex conditionals
|
/cs-agent skill:fix-code-health-degradations |
|
…p-example.cs - python-example.py: extract _build_transaction_item and _accumulate_vat helpers to reduce _build_transaction_from_cart cyclomatic complexity (cc 9 -> <9), and split _validate_purchase_activation_options boolean logic into dedicated helpers to reduce cc from 10 to <9 - csharp-example.cs: introduce ScoreContext struct to encapsulate score state, extract ProcessArgs, ApplyFlagToken, ApplyRetryLoop, ApplyRetryIteration, ApplyFinalAdjustments helpers to reduce CalculateExecutionScore cc from 28, and eliminate Bumpy Road Ahead / Primitive Obsession degradations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introducing code smells in an already bad file. Degrading a previous 10.0.