- Notifications
You must be signed in to change notification settings - Fork530
Commite3a378b
committed
fix: fix Rubocop Metrics/ClassLength offense (refactor Git::Status)
This refactoring streamlines the Git::Status class by decomposingits responsibilities, resulting in cleaner, more focused components:* `StatusFile`: The inner data responsibilities was moved to its own class.* `StatusFileFactory`: A new private factory was created to encapsulate all the logic for executing git commands and parsing their output into StatusFile objects.I think the result is more readable and maintainable code.1 parentd70c800 commite3a378b
2 files changed
+111
-261
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
0 commit comments
Comments
(0)