aprs.me/lib/aprsme_web/live/map_live
Graham McIntire 0eccbd2ac7
Fix all remaining cyclomatic complexity issues
Resolves the final 5 Credo cyclomatic complexity issues by:

1. packet.ex: Create get_field_value/2 helper function
   - Replaces all `data[:field] || data["field"]` patterns
   - Reduces complexity in put_equipment_fields (11 -> 9)
   - Reduces complexity in put_phg_fields (12 -> 9)
   - Reduces complexity in put_standard_parser_fields (11 -> 9)

2. query_builder.ex: Use SQL fragment for weather_only query
   - Replaces multiple Elixir `or` operators with single SQL fragment
   - Reduces complexity from 10 to within limits

3. packet_utils.ex: Use SQL fragment for weather check query
   - Replaces multiple Elixir `or` operators with single SQL fragment
   - Reduces complexity from 11 to within limits

All 71 Credo issues now resolved:
- 14/14 warnings ✓
- 14/14 design suggestions ✓
- 40/40 refactoring issues ✓
- 3/3 code readability issues ✓

100% Credo compliance achieved!
2026-02-09 13:20:54 -06:00
..
bounds_manager.ex clean up warnings 2025-07-16 08:55:46 -05:00
components.ex Fix get_received_at to properly handle Packet structs 2025-10-25 18:43:14 -05:00
data_builder.ex Fix remaining nesting depth issues 2026-02-09 12:37:38 -06:00
display_manager.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
historical_loader.ex Reduce cyclomatic complexity in high-complexity functions 2026-02-09 13:15:17 -06:00
index.ex Fix credo warnings and start on design suggestions 2026-02-09 11:23:01 -06:00
map_helpers.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
navigation.ex fix: Handle database ownership errors gracefully in LiveView tests 2025-07-30 14:29:35 -05:00
packet_batcher.ex updates with parser updates 2025-08-03 09:19:31 -05:00
packet_manager.ex clean up warnings 2025-07-16 08:55:46 -05:00
packet_processor.ex Fix remaining nesting depth issues 2026-02-09 12:37:38 -06:00
packet_store.ex performance improvements 2025-07-14 16:35:58 -05:00
packet_utils.ex Fix all remaining cyclomatic complexity issues 2026-02-09 13:20:54 -06:00
popup_component.ex integrate /:call to main page 2025-07-13 10:36:58 -05:00
rf_path.ex Fix aprs-is variables 2025-10-12 10:32:12 -05:00
url_params.ex fix: Resolve majority of dialyzer type errors 2025-07-30 13:30:21 -05:00
utils.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00