Repository navigation
Split scene_spec_generate_cmd under the complexity gate - #179
Merged
Merged
Conversation
…ty gate. Co-authored-by: Cursor <cursoragent@cursor.com>
…hotspot CCN limit. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
scene_spec_generate_cmdinto helpers so the command is lizard CCN 3 and radon A, within CCN ≤ 10 and radon ≤ C.src/docgen/cli.pycommands that kept the file over the hotspot limit (image_generate_cmd,yaml_generate_cmd,benchmark,scene_compile,narration_generate,main,compose,_load_env). File max CCN is now 9. CLI behavior is unchanged.src/docgen/benchmark_data/baseline.json. Complexity, NLOC, and mutation ceilings are unchanged.Test plan
pytest tests/(903 passed; scratch-validate script passed on a Python that can import click)docgen benchmarkmeets baselinecheck-complexity.pypassescheck-hotspots.pypasses (src/docgen/cli.pymaxCCN 9, limit 10)