aprs.me/lib/aprsme_web/live/map_live
Graham McIntire 4366fa36da
Refactor conditionals to use multi-clause pattern matching
Replace case/cond/if blocks with multi-clause function dispatch
and pattern matching in function heads across 9 modules:
- WeatherUnits: case to multi-clause unit_system/1, unit_labels via do_unit_labels/1
- PacketUtils: if to pattern match on %{"id" => id}, multi-clause threshold/callsign
- SetLocale: case to multi-clause extract_locale/1
- IPGeolocation: if/cond to pattern match on conn, binary prefix matching for private_ip?
- DeviceIdentification: cond to extracted pattern_matches?/2
- MobileChannel: cond to multi-clause do_callsign_match/2
- PacketProcessor: cond to dispatch_visibility/6 on {in_bounds, has_marker} tuple
- PacketManager: destructure packet_state in heads, multi-clause maybe_cleanup/3
- AprsSymbol: case/if to multi-clause get_table_id/1, normalize_symbol_code/1
2026-02-10 17:15:49 -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 Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00
packet_processor.ex Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -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