-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Run goimports on the whole project #34
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
Conversation
|
LGTM |
1 similar comment
|
LGTM |
|
Could you please rebase and fix conflicts ? |
|
Please rebase as @strk mentioned. |
modules/markdown/markdown_test.go
Outdated
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.
nope
modules/markdown/markdown_test.go
Outdated
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.
nope
models/repo_test.go
Outdated
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.
This needs to be changed
models/repo_test.go
Outdated
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.
and this
Signed-off-by: Matthias Loibl <[email protected]>
Current coverage is 2.18% (diff: 100%)@@ master #34 diff @@
========================================
Files 31 31
Lines 7508 7508
Methods 0 0
Messages 0 0
Branches 0 0
========================================
Hits 164 164
Misses 7327 7327
Partials 17 17
|
|
Recreated the commit with the current |
…raph Replace all unexplained 'magic numbers' with well-documented constants for better code maintainability and readability. Changes in FishboneGraph.vue: - Added comprehensive constant definitions organized by category: * Demo data generation (RANDOM_MIN, RANDOM_MAX) * Bubble sizing (R_MIN, R_MAX, MAX_DEPTH) * Vertical layout (LEVEL_GAP, stem lengths) * Layout defaults (spacing, offsets, radii) * Collision clearances * Zoom/pan constraints * View reset parameters * Responsive breakpoints and factors * API parameters * Animation durations * SVG layout dimensions * ID generation parameters - Replaced all hardcoded numeric values with named constants - Added inline comments explaining responsive calculation logic - Calculated RADIUS_HEIGHT_RANGE_FACTOR from min/max for clarity Changes in BubbleNode.vue: - Added label layout constants section with documentation: * Font sizing (min/max, scale factors) * Label spacing (padding, gaps) * Text width estimation ratios * Button sizing and positioning - Replaced all magic numbers in label fit calculations - Fixed TypeScript issue with onView accepting both Mouse and Keyboard events Benefits: - All numeric values now have clear, searchable names - Calculations are more readable and self-documenting - Easier to adjust layout behavior by changing constants - Reduces cognitive load when maintaining the code - Makes responsive behavior formulas more transparent
…raph Replace all unexplained 'magic numbers' with well-documented constants for better code maintainability and readability. Changes in FishboneGraph.vue: - Added comprehensive constant definitions organized by category: * Demo data generation (RANDOM_MIN, RANDOM_MAX) * Bubble sizing (R_MIN, R_MAX, MAX_DEPTH) * Vertical layout (LEVEL_GAP, stem lengths) * Layout defaults (spacing, offsets, radii) * Collision clearances * Zoom/pan constraints * View reset parameters * Responsive breakpoints and factors * API parameters * Animation durations * SVG layout dimensions * ID generation parameters - Replaced all hardcoded numeric values with named constants - Added inline comments explaining responsive calculation logic - Calculated RADIUS_HEIGHT_RANGE_FACTOR from min/max for clarity Changes in BubbleNode.vue: - Added label layout constants section with documentation: * Font sizing (min/max, scale factors) * Label spacing (padding, gaps) * Text width estimation ratios * Button sizing and positioning - Replaced all magic numbers in label fit calculations - Fixed TypeScript issue with onView accepting both Mouse and Keyboard events Benefits: - All numeric values now have clear, searchable names - Calculations are more readable and self-documenting - Easier to adjust layout behavior by changing constants - Reduces cognitive load when maintaining the code - Makes responsive behavior formulas more transparent
When opening this repository in my editor, I run goimports automatically. This is what it found.