aprs.me/lib/aprsme_web/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
..
bad_packets_live clean up warnings 2025-07-16 08:55:46 -05:00
components fix compile warnings 2025-07-09 16:58:07 -05:00
info_live Fix additional nesting depth issues across multiple files 2026-02-09 12:32:42 -06:00
map_live Fix all remaining cyclomatic complexity issues 2026-02-09 13:20:54 -06:00
packets_live clean up warnings 2025-07-16 08:55:46 -05:00
shared Fix DateTime.to_iso8601 error by handling NaiveDateTime 2025-07-29 10:57:36 -05:00
status_live Complete nested module alias fixes and update Sobelow skips 2026-02-09 11:26:47 -06:00
weather_live Reduce cyclomatic complexity in weather callsign view 2026-02-09 12:10:56 -06:00
about_live.ex en español 2025-07-05 15:51:39 -05:00
about_live.html.heex en español 2025-07-05 15:51:39 -05:00
api_docs_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
locale_hook.ex clean up warnings 2025-07-16 08:55:46 -05:00
shutdown_handler.ex Fix PgBouncer database connection and graceful shutdown 2025-07-26 15:51:06 -05:00
theme_manager.ex more performance improvements/cleanup 2025-07-14 16:49:55 -05:00
user_confirmation_instructions_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_confirmation_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_forgot_password_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_login_live.ex add more translations 2025-07-18 11:18:04 -05:00
user_registration_live.ex add more translations 2025-07-18 11:18:04 -05:00
user_reset_password_live.ex add user auth 2025-07-09 08:53:50 -05:00
user_settings_live.ex clean up warnings 2025-07-16 08:55:46 -05:00