aprs.me/lib/aprsme_web
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
..
channels Reduce cyclomatic complexity in high-complexity functions 2026-02-09 13:15:17 -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 Fix all remaining cyclomatic complexity issues 2026-02-09 13:20:54 -06:00
plugs Fix predicate function naming conventions 2026-02-09 12:42:07 -06:00
aprs_symbol.ex Fix additional nesting depth issues across multiple files 2026-02-09 12:32:42 -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 Add missing type specifications to improve type safety 2025-07-30 13:40:14 -05:00