Refactored code to address code smells and improve readability #28
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.
This commit focuses on refactoring the code to address identified code smells and enhance the overall readability of the codebase. The following specific changes have been made:
In the
ExecutationSetupView
class:Fixed indentation and removed unnecessary empty lines.
Renamed the class to correct a the typo.
In the
NewBufferView
class:Reorganized imports for better organization.
Improved variable naming to enhance code clarity.
In the
PowerLineView
class:Added null safety checks to ensure robustness.
Extracted a separate method for setting the file name, improving code modularity.
Additionally, a few changes were applied to
Main.kt
andMainView.kt
to align with the overall refactoring effort.These modifications significantly contribute to the maintainability and comprehensibility of the codebase, facilitating future development and maintenance tasks.