-
Notifications
You must be signed in to change notification settings - Fork 15
Refactor: Split collect_data() into more smaller parts
#144
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
base: master
Are you sure you want to change the base?
Refactor: Split collect_data() into more smaller parts
#144
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
b22f497 to
6200a75
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
collect_data() (2nd-largest function) into more manageable parts:
collect_data() (2nd-largest function) into more manageable parts:collect_data() (2nd-largest function) into more manageable parts
collect_data() (2nd-largest function) into more manageable partscollect_data() into more smaller parts
No functional change, only the function is split
collect_datahas a cyclomatic complexity of 21. It is the 3rd-highest inxen-bugtool, and code review tools warn that it should be simplified.Below are the instructions for reviewing the diff without whitespace to confirm that it only split:
Commits:
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Pull Request Overview
Updates Python CI to use Python 3.11 and refactors the large
collect_data()function by extracting file and function output collection into separate, more manageable functions.collect_data()function into smaller, focused functions for better maintainabilityReviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
collect_data()by extracting proc file and function output collection into separate functionsNo functional change, only the function is split
The changes without changing the indentation (white space) can be verified using: