aprs.me/lib/aprsme_web
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
..
channels Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00
components Fix additional nesting depth issues across multiple files 2026-02-09 12:32:42 -06:00
controllers Reduce cyclomatic complexity in callsign_json.ex 2026-02-09 12:39:22 -06:00
live Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00
plugs Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00
aprs_symbol.ex Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00
endpoint.ex Add info logging for mobile websocket events and filter healthcheck logs 2025-10-25 17:04:59 -05:00
gettext.ex more languages 2025-07-06 10:08:58 -05:00
router.ex feat: Implement direct station URLs with persistent latest packet display 2025-07-30 12:56:05 -05:00
telemetry.ex Fix TelemetryMetricsPrometheus buckets configuration properly 2025-07-27 14:24:25 -05:00
time_helpers.ex improve dialyzer 2025-10-13 10:02:15 -05:00
time_utils.ex improve dialyzer 2025-10-13 10:02:15 -05:00
user_auth.ex Fix credo warnings and start on design suggestions 2026-02-09 11:23:01 -06:00
weather_units.ex Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00