You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor complex macros in NervesHubWeb module (#2298)
- Split updated_live_view() macro into smaller, focused functions:
- live_view_setup() for basic setup
- live_view_imports() for imports and aliases
- live_view_helper_functions() for helper functions
- tab_component_functions() for tab-related functionality
- Split hooked_component() macro into smaller, focused functions:
- hooked_component_setup() for basic setup
- hooked_component_imports() for imports
- hooked_component_tab_setup() for tab configuration
- hook_connection_functions() for hook management
- hooked_component_helper_functions() for helper functions
- Reduced cyclomatic complexity from 13 to <9 for updated_live_view()
- Reduced cyclomatic complexity from 16 to <9 for hooked_component()
- Fixed alias ordering to maintain alphabetical order
- Improved code readability and maintainability
Resolves Credo refactoring opportunities for complex functions.
---------
Co-authored-by: Taras Tyshko <[email protected]>
0 commit comments