-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
[2.x] Refactor the internals of the new table of contents generator #2046
Conversation
Co-Authored-By: StyleCI Bot <bot@styleci.io>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## new-asset-system #2046 +/- ##
====================================================
Coverage 100.00% 100.00%
- Complexity 1914 1925 +11
====================================================
Files 195 195
Lines 5094 5122 +28
====================================================
+ Hits 5094 5122 +28 ☔ View full report in Codecov by Sentry. |
71ed462
to
a2c420d
Compare
ChatGPT 4o Code ReviewThe decision to merge the PR depends on the trade-offs between code readability, maintainability, and complexity: Pros:
Cons:
Evaluating This Case:
Final Verdict:If the project values maintainability and readability over minimalism and the refactor aligns with the project's coding standards, merging the PR is justified. On the other hand, if simplicity and concise code are critical in your project, consider leaving the class as it was or only making partial refactors. |
Make some refactors to the internals of the new generator added in #2045
It does add about 100 lines of code (doubling the class), but given how much more readable the class is now I think that's acceptable. The public API still remains the same as it's just internal refactors.
Also updates some docs.