Extract helper functions to reduce cyclomatic complexity: - telemetry/database_metrics.ex: Extract emit_packets_table_telemetry/7 Moves multiple || 0 operators into separate function Reduces complexity from 10 to within limits - packet_utils.ex: Extract build_weather_check_query/1 Moves Ecto query building with multiple or conditions Reduces complexity from 11 to within limits - packet.ex: Extract merge_extracted_data/3 Moves telemetry and parser data merging logic Reduces complexity from 11 to within limits Fixes 3 Credo cyclomatic complexity issues (7 remaining). |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| live | ||
| plugs | ||
| aprs_symbol.ex | ||
| endpoint.ex | ||
| gettext.ex | ||
| router.ex | ||
| telemetry.ex | ||
| time_helpers.ex | ||
| time_utils.ex | ||
| user_auth.ex | ||
| weather_units.ex | ||